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.
 

34 lines
898 B

// Code generated DO NOT EDIT
// textencoderstream.go
package dom
import "syscall/js"
type TextEncoderStreamIFace interface {
GetEncoding() string
GetReadable() Value
GetWritable() Value
}
type TextEncoderStream struct {
Value
}
func JSValueToTextEncoderStream(val js.Value) TextEncoderStream {
return TextEncoderStream{Value: JSValueToValue(val)}
}
func (v Value) AsTextEncoderStream() TextEncoderStream { return TextEncoderStream{Value: v} }
func NewTextEncoderStream(args ...interface{}) TextEncoderStream {
return TextEncoderStream{Value: JSValueToValue(js.Global().Get("TextEncoderStream").New(args...))}
}
func (t TextEncoderStream) GetEncoding() string {
val := t.Get("encoding")
return val.String()
}
func (t TextEncoderStream) GetReadable() Value {
val := t.Get("readable")
return val
}
func (t TextEncoderStream) GetWritable() Value {
val := t.Get("writable")
return val
}