{"modulePath":"github.com/GoAdminLive/go-admin","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package form\n\n## Constants\n\n```go\nconst (\n\tPostTypeKey           = \"__go_admin_post_type\"\n\tPostResultKey         = \"__go_admin_post_result\"\n\tPostIsSingleUpdateKey = \"__go_admin_is_single_update\"\n\n\tPreviousKey = \"__go_admin_previous_\"\n\tTokenKey    = \"__go_admin_t_\"\n\tMethodKey   = \"__go_admin_method_\"\n\n\tNoAnimationKey = \"__go_admin_no_animation_\"\n)\n```\n\n## Types\n\n```go\ntype Values map[string][]string\n```\nValues 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.\n\n```go\nfunc (f Values) Add(key string, value string)\n```\nAdd adds the value to key. It appends to any existing values associated with key.\n\n```go\nfunc (f Values) Delete(key string)\n```\nDelete deletes the values associated with key.\n\n```go\nfunc (f Values) Get(key string) string\n```\nGet 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.\n\n```go\nfunc (f Values) Has(key ...string) bool\n```\nHas check the key exists or not.\n\n```go\nfunc (f Values) IsEmpty(key ...string) bool\n```\nIsEmpty check the key is empty or not.\n\n```go\nfunc (f Values) IsInsertPost() bool\n```\nIsInsertPost check the param if is from an insert post request type or not.\n\n```go\nfunc (f Values) IsSingleUpdatePost() bool\n```\nIsSingleUpdatePost check the param if from an single update post request type or not.\n\n```go\nfunc (f Values) IsUpdatePost() bool\n```\nIsUpdatePost check the param if is from an update post request type or not.\n\n```go\nfunc (f Values) PostError() error\n```\nPostError get the post result.\n\n```go\nfunc (f Values) RemoveRemark() Values\n```\nRemoveRemark removes the PostType and IsSingleUpdate flag parameters.\n\n```go\nfunc (f Values) RemoveSysRemark() Values\n```\nRemoveSysRemark removes all framework post flag parameters.\n\n```go\nfunc (f Values) ToMap() map[string]string\n```\nToMap turn the values to a map\\[string]string type.\n\n","path":"github.com/GoAdminLive/go-admin/plugins/admin/modules/form","name":"form","synopsis":"","isRedistributable":true}
