commonenvironment

package
v0.0.0-...-3de8ebd Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const DirectiveConverterBase64Encode = "base64encode"

DirectiveConverterBase64Encode directive for converter base64encode.

View Source
const DirectiveConverterCommaEscape = "commaescape"

DirectiveConverterCommaEscape directive for converter comma escape.

View Source
const DirectiveConverterHTMLEscape = "htmlescape"

DirectiveConverterHTMLEscape directive for converter html escape.

View Source
const DirectiveConverterJSONEscape = "jsonescape"

DirectiveConverterJSONEscape directive for converter json escape

View Source
const DirectiveConverterToLower = "lower"

DirectiveConverterToLower directive for converter tolower.

View Source
const DirectiveConverterToUpper = "upper"

DirectiveConverterToUpper directive for converter touppwer.

View Source
const DirectiveConverterTrim = "trim"

DirectiveConverterTrim directive for converter trim.

View Source
const DirectiveConverterURLEncode = "urlencode"

DirectiveConverterURLEncode directive for converter urlencode.

View Source
const DirectiveDefaultParser = ""

DirectiveDefaultParser directive for parser default

View Source
const DirectiveParserJSON = "json"

DirectiveParserJSON directive for parser json

View Source
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

func ConverterBase64Encode(data string) string

ConverterBase64Encode converter base64encode. Base64 encode data.

func ConverterCommaEscape

func ConverterCommaEscape(data string) string

ConverterCommaEscape converter comma escape. Escape ',' amd '&' in data as html.

func ConverterCommaUnescape

func ConverterCommaUnescape(data string) string

ConverterCommaUnescape converter comma escape. Unescape ',' amd '&' in data as html.

func ConverterHTMLEscape

func ConverterHTMLEscape(data string) string

ConverterHTMLEscape converter html escape. Escape data as html.

func ConverterJSONEscape

func ConverterJSONEscape(data string) string

ConverterJSONEscape converter json escape Escape data for safely used in json string.

func ConverterToLower

func ConverterToLower(data string) string

ConverterToLower converter tolower. Convert give data to lower.

func ConverterToUpper

func ConverterToUpper(data string) string

ConverterToUpper converter toupper. Convert give data to lower.

func ConverterTrim

func ConverterTrim(data string) string

ConverterTrim converter trim. Trim data spaces.

func ConverterURLEncode

func ConverterURLEncode(data string) string

ConverterURLEncode converter urlencode. Base64 encode data.

func ParserJSON

func ParserJSON(data string) (interface{}, error)

ParserJSON parser json. Parse give data in json format. Nil will be returned if empty data given

func ParserString

func ParserString(data string) (interface{}, error)

ParserString parser string. Return given data as parsed result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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