Documentation ¶
Index ¶
- Constants
- func ApplyDirectives(env *herbtext.PlainEnvironment)
- func ConverterBase64Encode(data string) string
- func ConverterCommaEscape(data string) string
- func ConverterCommaUnescape(data string) string
- func ConverterHTMLEscape(data string) string
- func ConverterJSONEscape(data string) string
- func ConverterToLower(data string) string
- func ConverterToUpper(data string) string
- func ConverterTrim(data string) string
- func ConverterURLEncode(data string) string
- func ParserJSON(data string) (interface{}, error)
- func ParserString(data string) (interface{}, error)
Constants ¶
const DirectiveConverterBase64Encode = "base64encode"
DirectiveConverterBase64Encode directive for converter base64encode.
const DirectiveConverterCommaEscape = "commaescape"
DirectiveConverterCommaEscape directive for converter comma escape.
const DirectiveConverterHTMLEscape = "htmlescape"
DirectiveConverterHTMLEscape directive for converter html escape.
const DirectiveConverterJSONEscape = "jsonescape"
DirectiveConverterJSONEscape directive for converter json escape
const DirectiveConverterToLower = "lower"
DirectiveConverterToLower directive for converter tolower.
const DirectiveConverterToUpper = "upper"
DirectiveConverterToUpper directive for converter touppwer.
const DirectiveConverterTrim = "trim"
DirectiveConverterTrim directive for converter trim.
const DirectiveConverterURLEncode = "urlencode"
DirectiveConverterURLEncode directive for converter urlencode.
const DirectiveDefaultParser = ""
DirectiveDefaultParser directive for parser default
const DirectiveParserJSON = "json"
DirectiveParserJSON directive for parser json
const DirectiveParserString = "string"
DirectiveParserString directive for parser string
Variables ¶
This section is empty.
Functions ¶
func ApplyDirectives ¶
func ApplyDirectives(env *herbtext.PlainEnvironment)
ApplyDirectives apply common directives to given plain enviroment.
func ConverterBase64Encode ¶
ConverterBase64Encode converter base64encode. Base64 encode data.
func ConverterCommaEscape ¶
ConverterCommaEscape converter comma escape. Escape ',' amd '&' in data as html.
func ConverterCommaUnescape ¶
ConverterCommaUnescape converter comma escape. Unescape ',' amd '&' in data as html.
func ConverterHTMLEscape ¶
ConverterHTMLEscape converter html escape. Escape data as html.
func ConverterJSONEscape ¶
ConverterJSONEscape converter json escape Escape data for safely used in json string.
func ConverterToLower ¶
ConverterToLower converter tolower. Convert give data to lower.
func ConverterToUpper ¶
ConverterToUpper converter toupper. Convert give data to lower.
func ConverterTrim ¶
ConverterTrim converter trim. Trim data spaces.
func ConverterURLEncode ¶
ConverterURLEncode converter urlencode. Base64 encode data.
func ParserJSON ¶
ParserJSON parser json. Parse give data in json format. Nil will be returned if empty data given
func ParserString ¶
ParserString parser string. Return given data as parsed result.
Types ¶
This section is empty.