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
791 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: Value{Value: val}} }
func (v Value) AsMimeType() MimeType { return MimeType{Value: v} }
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()
}