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
926 B

// Code generated DO NOT EDIT
// mimetype.go
package dom
import "syscall/js"
type MimeTypeIFace interface {
GetDescription() string
GetEnabledPlugin() Plugin
GetSuffixes() string
GetType() string
}
type MimeType struct {
Value
}
func JSValueToMimeType(val js.Value) MimeType { return MimeType{Value: JSValueToValue(val)} }
func (v Value) AsMimeType() MimeType { return MimeType{Value: v} }
func NewMimeType(args ...interface{}) MimeType {
return MimeType{Value: JSValueToValue(js.Global().Get("MimeType").New(args...))}
}
func (m MimeType) GetDescription() string {
val := m.Get("description")
return val.String()
}
func (m MimeType) GetEnabledPlugin() Plugin {
val := m.Get("enabledPlugin")
return JSValueToPlugin(val.JSValue())
}
func (m MimeType) GetSuffixes() string {
val := m.Get("suffixes")
return val.String()
}
func (m MimeType) GetType() string {
val := m.Get("type")
return val.String()
}