webapi: github.com/gowebapi/webapi/dom/text Index | Files

package text

import "github.com/gowebapi/webapi/dom/text"

Package text is text encoding standard.

Index

Package Files

doc.go text.go

type DecodeOptions Uses

type DecodeOptions struct {
    Stream bool
}

dictionary: TextDecodeOptions

func DecodeOptionsFromJS Uses

func DecodeOptionsFromJS(value js.Wrapper) *DecodeOptions

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

func (*DecodeOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Decoder Uses

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

class: TextDecoder

func DecoderFromJS Uses

func DecoderFromJS(value js.Wrapper) *Decoder

DecoderFromJS is casting a js.Wrapper into Decoder.

func NewTextDecoder Uses

func NewTextDecoder(label *string, options *DecoderOptions) (_result *Decoder)

func (*Decoder) Decode Uses

func (_this *Decoder) Decode(input *Union, options *DecodeOptions) (_result string)

func (*Decoder) Encoding Uses

func (_this *Decoder) Encoding() string

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

func (*Decoder) Fatal Uses

func (_this *Decoder) Fatal() bool

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

func (*Decoder) IgnoreBOM Uses

func (_this *Decoder) IgnoreBOM() bool

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

func (*Decoder) JSValue Uses

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

type DecoderOptions Uses

type DecoderOptions struct {
    Fatal     bool
    IgnoreBOM bool
}

dictionary: TextDecoderOptions

func DecoderOptionsFromJS Uses

func DecoderOptionsFromJS(value js.Wrapper) *DecoderOptions

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

func (*DecoderOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DecoderStream Uses

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

class: TextDecoderStream

func DecoderStreamFromJS Uses

func DecoderStreamFromJS(value js.Wrapper) *DecoderStream

DecoderStreamFromJS is casting a js.Wrapper into DecoderStream.

func NewTextDecoderStream Uses

func NewTextDecoderStream(label *string, options *DecoderOptions) (_result *DecoderStream)

func (*DecoderStream) Encoding Uses

func (_this *DecoderStream) Encoding() string

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

func (*DecoderStream) Fatal Uses

func (_this *DecoderStream) Fatal() bool

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

func (*DecoderStream) IgnoreBOM Uses

func (_this *DecoderStream) IgnoreBOM() bool

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

func (*DecoderStream) JSValue Uses

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

func (*DecoderStream) Readable Uses

func (_this *DecoderStream) Readable() *patch.ReadableStream

Readable returning attribute 'readable' with type patch.ReadableStream (idl: ReadableStream).

func (*DecoderStream) Writable Uses

func (_this *DecoderStream) Writable() *missingtypes.WritableStream

Writable returning attribute 'writable' with type missingtypes.WritableStream (idl: WritableStream).

type Encoder Uses

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

class: TextEncoder

func EncoderFromJS Uses

func EncoderFromJS(value js.Wrapper) *Encoder

EncoderFromJS is casting a js.Wrapper into Encoder.

func NewTextEncoder Uses

func NewTextEncoder() (_result *Encoder)

func (*Encoder) Encode Uses

func (_this *Encoder) Encode(input *string) (_result *javascript.Uint8Array)

func (*Encoder) EncodeInto Uses

func (_this *Encoder) EncodeInto(source string, destination *javascript.Uint8Array) (_result *EncoderEncodeIntoResult)

func (*Encoder) Encoding Uses

func (_this *Encoder) Encoding() string

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

func (*Encoder) JSValue Uses

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

type EncoderEncodeIntoResult Uses

type EncoderEncodeIntoResult struct {
    Read    int
    Written int
}

dictionary: TextEncoderEncodeIntoResult

func EncoderEncodeIntoResultFromJS Uses

func EncoderEncodeIntoResultFromJS(value js.Wrapper) *EncoderEncodeIntoResult

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

func (*EncoderEncodeIntoResult) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type EncoderStream Uses

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

class: TextEncoderStream

func EncoderStreamFromJS Uses

func EncoderStreamFromJS(value js.Wrapper) *EncoderStream

EncoderStreamFromJS is casting a js.Wrapper into EncoderStream.

func NewTextEncoderStream Uses

func NewTextEncoderStream() (_result *EncoderStream)

func (*EncoderStream) Encoding Uses

func (_this *EncoderStream) Encoding() string

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

func (*EncoderStream) JSValue Uses

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

func (*EncoderStream) Readable Uses

func (_this *EncoderStream) Readable() *patch.ReadableStream

Readable returning attribute 'readable' with type patch.ReadableStream (idl: ReadableStream).

func (*EncoderStream) Writable Uses

func (_this *EncoderStream) Writable() *missingtypes.WritableStream

Writable returning attribute 'writable' with type missingtypes.WritableStream (idl: WritableStream).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package text imports 4 packages (graph). Updated 2019-09-15. Refresh now. Tools for package owners.