form

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary js.Value

func (Binary) Type

func (b Binary) Type() ValueType

func (Binary) ValueRef

func (b Binary) ValueRef() js.Value

type FormData

type FormData js.Value

func FormDataOf

func FormDataOf(x ...any) FormData

func (FormData) Append

func (f FormData) Append(name string, val FormValue, filename ...string)

func (FormData) Delete

func (f FormData) Delete(name string)

func (FormData) Get

func (f FormData) Get(name string) FormValue

func (FormData) JSValue

func (f FormData) JSValue() js.Value

func (FormData) Set

func (f FormData) Set(name string, val FormValue, filename ...string)

type FormValue

type FormValue interface {
	Type() ValueType
	ValueRef() js.Value
}

type String

type String string

func (String) Type

func (s String) Type() ValueType

func (String) ValueRef

func (s String) ValueRef() js.Value

type ValueType

type ValueType int
const (
	TypeString ValueType = ValueType(js.TypeString)
	TypeBinary ValueType = ValueType(js.TypeObject)
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL