func CookieSameSiteFromJS(value js.Value) CookieSameSite {
	key := value.String()
	conv, ok := cookieSameSiteFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
CookieSameSiteFromJS is converting a javascript value into
a CookieSameSite enum value.
package cookie
import "syscall/js"
import (
	"github.com/gowebapi/webapi/dom/domcore"
	"github.com/gowebapi/webapi/javascript"
)
func unused(value interface{}) {
}
type Union struct {
	Value js.Value
}
func (u *Union) JSValue() js.Value {
	return u.Value
}
func UnionFromJS(value js.Value) *Union {
	return &Union{Value: value}
}
type CookieMatchType int
const (
	EqualsCookieMatchType CookieMatchType = iota
	StartsWithCookieMatchType
)
var cookieMatchTypeToWasmTable = []string{
	"equals", "starts-with",
}
var cookieMatchTypeFromWasmTable = map[string]CookieMatchType{
	"equals": EqualsCookieMatchType, "starts-with": StartsWithCookieMatchType,
}
func (this *CookieMatchType) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this CookieMatchType) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(cookieMatchTypeToWasmTable) {
		return cookieMatchTypeToWasmTable[idx]
	}
	panic("unknown input value")
}
func CookieMatchTypeFromJS(value js.Value) CookieMatchType {
	key := value.String()
	conv, ok := cookieMatchTypeFromWasmTable[key]
	if !ok {
		panic("unable to convert '" + key + "'")
	}
	return conv
}
type CookieSameSite int
const (
	StrictCookieSameSite CookieSameSite = iota
	LaxCookieSameSite
	UnrestrictedCookieSameSite
)
var cookieSameSiteToWasmTable = []string{
	"strict", "lax", "unrestricted",
}
var cookieSameSiteFromWasmTable = map[string]CookieSameSite{
	"strict": StrictCookieSameSite, "lax": LaxCookieSameSite, "unrestricted": UnrestrictedCookieSameSite,
}
func (this *CookieSameSite) JSValue() js.Value {
	return js.ValueOf(this.Value())
}
func (this CookieSameSite) Value() string {
	idx := int(this)
	if idx >= 0 && idx < len(cookieSameSiteToWasmTable) {
		return cookieSameSiteToWasmTable[idx]
	}
	panic("unknown input value")
}