form

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostTypeKey           = "__go_admin_post_type"
	PostIsSingleUpdateKey = "__go_admin_is_single_update"

	PreviousKey = "__go_admin_previous_"
	TokenKey    = "__go_admin_t_"
	MethodKey   = "__go_admin_method_"

	NoAnimationKey = "__go_admin_no_animation_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Values

type Values map[string][]string

Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.

func (Values) Add

func (f Values) Add(key string, value string)

Add adds the value to key. It appends to any existing values associated with key.

func (Values) Delete

func (f Values) Delete(key string)

Delete deletes the values associated with key.

func (Values) Get

func (f Values) Get(key string) string

Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

func (Values) Has

func (f Values) Has(key ...string) bool

Has check the key exists or not.

func (Values) IsEmpty

func (f Values) IsEmpty(key ...string) bool

IsEmpty check the key is empty or not.

func (Values) IsInsertPost

func (f Values) IsInsertPost() bool

func (Values) IsSingleUpdatePost

func (f Values) IsSingleUpdatePost() bool

func (Values) IsUpdatePost

func (f Values) IsUpdatePost() bool

func (Values) RemoveRemark

func (f Values) RemoveRemark() Values

Jump to

Keyboard shortcuts

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