Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxJSONBodySize int64 = 1 << 20
DefaultMaxJSONBodySize is the default maximum JSON body size (1 MB)
Variables ¶
This section is empty.
Functions ¶
func ParseJSONBody ¶
ParseJSONBody parses JSON from a reader with a size limit. Pass 0 to use the default limit (1 MB). The caller owns closing the reader.
func ParseString ¶
ParseString parses a string into a target type
func SanitizeString ¶
SanitizeString removes potentially dangerous characters
Types ¶
Click to show internal directories.
Click to hide internal directories.