text

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 5 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.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

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

class: TextDecoder

func DecoderFromJS

func DecoderFromJS(value js.Value) *Decoder

DecoderFromJS is casting a js.Value into Decoder.

func DecoderFromWrapper

func DecoderFromWrapper(input core.Wrapper) *Decoder

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

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

JSValue returns the js.Value or js.Null() if _this is nil

type DecoderOptions

type DecoderOptions struct {
	Fatal     bool
	IgnoreBOM bool
}

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

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

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

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

class: TextEncoder

func EncoderFromJS

func EncoderFromJS(value js.Value) *Encoder

EncoderFromJS is casting a js.Value into Encoder.

func EncoderFromWrapper

func EncoderFromWrapper(input core.Wrapper) *Encoder

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)

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

JSValue returns the js.Value or js.Null() if _this is nil

type EncoderEncodeIntoResult

type EncoderEncodeIntoResult struct {
	Read    int
	Written int
}

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

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

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

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