Documentation
¶
Overview ¶
Package form provides form data values exposed to WebGo programs.
Index ¶
- Constants
- Variables
- type Entry
- type FormData
- func (data *FormData) Append(name, value string) error
- func (data *FormData) Delete(name string)
- func (data *FormData) Encode() (string, error)
- func (data *FormData) Entries() []Entry
- func (data *FormData) Get(name string) (string, bool)
- func (data *FormData) GetAll(name string) []string
- func (data *FormData) Has(name string) bool
- func (data *FormData) Set(name, value string) error
Constants ¶
View Source
const (
ContentTypeURLEncoded = "application/x-www-form-urlencoded;charset=UTF-8"
)
Variables ¶
View Source
var ( ErrInvalidField = errors.New("invalid FormData field") ErrTooLarge = errors.New("FormData exceeds size limit") )
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct{ Name, Value string }
Entry is one ordered FormData field name/value pair.
type FormData ¶
type FormData struct {
// contains filtered or unexported fields
}
FormData stores ordered text form fields. File and multipart entries are not supported.
Click to show internal directories.
Click to hide internal directories.