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.
 

31 lines
727 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: Value{Value: val}}
}
func (v Value) AsTextEncoderStream() TextEncoderStream { return TextEncoderStream{Value: v} }
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
}