text

package
v0.0.0-...-724c8d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package text is text encoding standard.

Index

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.Wrapper) *DecodeOptions

DecodeOptionsFromJS is allocating a new DecodeOptions object and copy all values from input javascript object

func (*DecodeOptions) JSValue

func (_this *DecodeOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Decoder

type Decoder struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextDecoder

func DecoderFromJS

func DecoderFromJS(value js.Wrapper) *Decoder

DecoderFromJS is casting a js.Wrapper 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

func (_this *Decoder) Encoding() string

Encoding returning attribute 'encoding' with type string (idl: DOMString).

func (*Decoder) Fatal

func (_this *Decoder) Fatal() bool

Fatal returning attribute 'fatal' with type bool (idl: boolean).

func (*Decoder) IgnoreBOM

func (_this *Decoder) IgnoreBOM() bool

IgnoreBOM returning attribute 'ignoreBOM' with type bool (idl: boolean).

func (*Decoder) JSValue

func (_this *Decoder) JSValue() js.Value

type DecoderOptions

type DecoderOptions struct {
	Fatal     bool
	IgnoreBOM bool
}

dictionary: TextDecoderOptions

func DecoderOptionsFromJS

func DecoderOptionsFromJS(value js.Wrapper) *DecoderOptions

DecoderOptionsFromJS is allocating a new DecoderOptions object and copy all values from input javascript object

func (*DecoderOptions) JSValue

func (_this *DecoderOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type DecoderStream

type DecoderStream struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextDecoderStream

func DecoderStreamFromJS

func DecoderStreamFromJS(value js.Wrapper) *DecoderStream

DecoderStreamFromJS is casting a js.Wrapper 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

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

type Encoder struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextEncoder

func EncoderFromJS

func EncoderFromJS(value js.Wrapper) *Encoder

EncoderFromJS is casting a js.Wrapper 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)

func (*Encoder) Encoding

func (_this *Encoder) Encoding() string

Encoding returning attribute 'encoding' with type string (idl: DOMString).

func (*Encoder) JSValue

func (_this *Encoder) JSValue() js.Value

type EncoderEncodeIntoResult

type EncoderEncodeIntoResult struct {
	Read    int
	Written int
}

dictionary: TextEncoderEncodeIntoResult

func EncoderEncodeIntoResultFromJS

func EncoderEncodeIntoResultFromJS(value js.Wrapper) *EncoderEncodeIntoResult

EncoderEncodeIntoResultFromJS is allocating a new EncoderEncodeIntoResult object and copy all values from input javascript object

func (*EncoderEncodeIntoResult) JSValue

func (_this *EncoderEncodeIntoResult) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EncoderStream

type EncoderStream struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextEncoderStream

func EncoderStreamFromJS

func EncoderStreamFromJS(value js.Wrapper) *EncoderStream

EncoderStreamFromJS is casting a js.Wrapper 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

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).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL