Documentation ¶
Overview ¶
Package text is text encoding standard.
Index ¶
- type DecodeOptions
- type Decoder
- type DecoderOptions
- type DecoderStream
- func (_this *DecoderStream) Encoding() string
- func (_this *DecoderStream) Fatal() bool
- func (_this *DecoderStream) IgnoreBOM() bool
- func (_this *DecoderStream) JSValue() js.Value
- func (_this *DecoderStream) Readable() *patch.ReadableStream
- func (_this *DecoderStream) Writable() *missingtypes.WritableStream
- type Encoder
- type EncoderEncodeIntoResult
- type EncoderStream
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeOptions ¶
type DecodeOptions struct {
Stream bool
}
dictionary: TextDecodeOptions
func DecodeOptionsFromJS ¶
func DecodeOptionsFromJS(value js.Value) *DecodeOptions
DecodeOptionsFromJS is allocating a new DecodeOptions object and copy all values in the value javascript object.
func (*DecodeOptions) JSValue ¶
func (_this *DecodeOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Decoder ¶
class: TextDecoder
func DecoderFromJS ¶
DecoderFromJS is casting a js.Value into Decoder.
func DecoderFromWrapper ¶
DecoderFromJS is casting from something that holds a js.Value into Decoder.
func NewTextDecoder ¶
func NewTextDecoder(label *string, options *DecoderOptions) (_result *Decoder)
func (*Decoder) Decode ¶
func (_this *Decoder) Decode(input *Union, options *DecodeOptions) (_result string)
func (*Decoder) Encoding ¶
Encoding returning attribute 'encoding' with type string (idl: DOMString).
type DecoderOptions ¶
dictionary: TextDecoderOptions
func DecoderOptionsFromJS ¶
func DecoderOptionsFromJS(value js.Value) *DecoderOptions
DecoderOptionsFromJS is allocating a new DecoderOptions object and copy all values in the value javascript object.
func (*DecoderOptions) JSValue ¶
func (_this *DecoderOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DecoderStream ¶
class: TextDecoderStream
func DecoderStreamFromJS ¶
func DecoderStreamFromJS(value js.Value) *DecoderStream
DecoderStreamFromJS is casting a js.Value into DecoderStream.
func DecoderStreamFromWrapper ¶
func DecoderStreamFromWrapper(input core.Wrapper) *DecoderStream
DecoderStreamFromJS is casting from something that holds a js.Value into DecoderStream.
func NewTextDecoderStream ¶
func NewTextDecoderStream(label *string, options *DecoderOptions) (_result *DecoderStream)
func (*DecoderStream) Encoding ¶
func (_this *DecoderStream) Encoding() string
Encoding returning attribute 'encoding' with type string (idl: DOMString).
func (*DecoderStream) Fatal ¶
func (_this *DecoderStream) Fatal() bool
Fatal returning attribute 'fatal' with type bool (idl: boolean).
func (*DecoderStream) IgnoreBOM ¶
func (_this *DecoderStream) IgnoreBOM() bool
IgnoreBOM returning attribute 'ignoreBOM' with type bool (idl: boolean).
func (*DecoderStream) JSValue ¶
func (_this *DecoderStream) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*DecoderStream) Readable ¶
func (_this *DecoderStream) Readable() *patch.ReadableStream
Readable returning attribute 'readable' with type patch.ReadableStream (idl: ReadableStream).
func (*DecoderStream) Writable ¶
func (_this *DecoderStream) Writable() *missingtypes.WritableStream
Writable returning attribute 'writable' with type missingtypes.WritableStream (idl: WritableStream).
type Encoder ¶
class: TextEncoder
func EncoderFromJS ¶
EncoderFromJS is casting a js.Value into Encoder.
func EncoderFromWrapper ¶
EncoderFromJS is casting from something that holds a js.Value into Encoder.
func NewTextEncoder ¶
func NewTextEncoder() (_result *Encoder)
func (*Encoder) Encode ¶
func (_this *Encoder) Encode(input *string) (_result *javascript.Uint8Array)
func (*Encoder) EncodeInto ¶
func (_this *Encoder) EncodeInto(source string, destination *javascript.Uint8Array) (_result *EncoderEncodeIntoResult)
type EncoderEncodeIntoResult ¶
dictionary: TextEncoderEncodeIntoResult
func EncoderEncodeIntoResultFromJS ¶
func EncoderEncodeIntoResultFromJS(value js.Value) *EncoderEncodeIntoResult
EncoderEncodeIntoResultFromJS is allocating a new EncoderEncodeIntoResult object and copy all values in the value javascript object.
func (*EncoderEncodeIntoResult) JSValue ¶
func (_this *EncoderEncodeIntoResult) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EncoderStream ¶
class: TextEncoderStream
func EncoderStreamFromJS ¶
func EncoderStreamFromJS(value js.Value) *EncoderStream
EncoderStreamFromJS is casting a js.Value into EncoderStream.
func EncoderStreamFromWrapper ¶
func EncoderStreamFromWrapper(input core.Wrapper) *EncoderStream
EncoderStreamFromJS is casting from something that holds a js.Value into EncoderStream.
func NewTextEncoderStream ¶
func NewTextEncoderStream() (_result *EncoderStream)
func (*EncoderStream) Encoding ¶
func (_this *EncoderStream) Encoding() string
Encoding returning attribute 'encoding' with type string (idl: DOMString).
func (*EncoderStream) JSValue ¶
func (_this *EncoderStream) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*EncoderStream) Readable ¶
func (_this *EncoderStream) Readable() *patch.ReadableStream
Readable returning attribute 'readable' with type patch.ReadableStream (idl: ReadableStream).
func (*EncoderStream) Writable ¶
func (_this *EncoderStream) Writable() *missingtypes.WritableStream
Writable returning attribute 'writable' with type missingtypes.WritableStream (idl: WritableStream).