Documentation ¶
Index ¶
- Variables
- func Await(promise js.Value) (resolve, reject js.Value)
- func AwaitError(promise js.Value) (resolve js.Value, err error)
- func NewBlob(mime string, b []byte) js.Value
- func NewDate(t time.Time) js.Value
- func NewUint8Array(b []byte) js.Value
- func ReadBody(body js.Value) (interface{ ... }, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NegativeOffset = errors.New("No support for negative offset") InvalidSeekWhence = errors.New("Invalid seek whence") )
Functions ¶
func AwaitError ¶
AwaitError resolve the promise. If fail the error contain the js object and his string value.
func NewUint8Array ¶
func ReadBody ¶
ReadBody creates a io.Reader with the Body.arrayBuffer(). The error implement js.JSValue
Body is a mixin for a Blob (File inherit of a Blob) or a fetch response. https://fetch.spec.whatwg.org/#body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.