Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

37 lines
965 B

// Code generated DO NOT EDIT
// textdecoder.go
package dom
import "syscall/js"
type TextDecoderIFace interface {
Decode(args ...interface{}) string
GetEncoding() string
GetFatal() bool
GetIgnoreBOM() bool
}
type TextDecoder struct {
Value
}
func JSValueToTextDecoder(val js.Value) TextDecoder { return TextDecoder{Value: JSValueToValue(val)} }
func (v Value) AsTextDecoder() TextDecoder { return TextDecoder{Value: v} }
func NewTextDecoder(args ...interface{}) TextDecoder {
return TextDecoder{Value: JSValueToValue(js.Global().Get("TextDecoder").New(args...))}
}
func (t TextDecoder) Decode(args ...interface{}) string {
val := t.Call("decode", args...)
return val.String()
}
func (t TextDecoder) GetEncoding() string {
val := t.Get("encoding")
return val.String()
}
func (t TextDecoder) GetFatal() bool {
val := t.Get("fatal")
return val.Bool()
}
func (t TextDecoder) GetIgnoreBOM() bool {
val := t.Get("ignoreBOM")
return val.Bool()
}