Documentation ¶
Index ¶
- Variables
- func Add(left interface{}, right interface{}) interface{}
- func AddSuffix(s string, suffix string, args ...string) string
- func AddURLValues(v url.Values, values ...interface{}) url.Values
- func Append(renderArgs map[string]interface{}, key string, value interface{}) string
- func Base64Decode(s string) string
- func CaptchaForm(args ...interface{}) template.HTML
- func CaptchaFormWithURLPrefix(urlPrefix string, args ...interface{}) template.HTML
- func CaptchaVerify(captchaSolution string, idGet func(string, ...string) string) bool
- func Concat(s ...string) string
- func Default(defaultV interface{}, v interface{}) interface{}
- func DelimLeft() string
- func DelimRight() string
- func Div(left interface{}, right interface{}) interface{}
- func DurationFormat(lang interface{}, t interface{}, args ...string) *com.Durafmt
- func Eq(left interface{}, right interface{}) bool
- func FriendlyTime(t interface{}, args ...interface{}) string
- func Hash(text, salt string, positions ...uint) string
- func Ignore(_ interface{}) interface{}
- func InExt(fileName string, exts ...string) bool
- func InStrSlice(values []string, value string) bool
- func IsEmpty(a interface{}) bool
- func IsInf(v interface{}, s interface{}) bool
- func IsNaN(v interface{}) bool
- func IsNil(a interface{}) bool
- func JSONDecode(s string) map[string]interface{}
- func JSONEncode(s interface{}, indents ...string) string
- func MakeMap(values ...interface{}) param.Store
- func Math(op string, args ...interface{}) interface{}
- func Mul(left interface{}, right interface{}) interface{}
- func New() (r template.FuncMap)
- func Nl2br(text string) string
- func NlToBr(text string) template.HTML
- func NotEmpty(a interface{}) bool
- func Now() time.Time
- func NumberTrim(number interface{}, precision int, separator ...string) string
- func SafeBase64Decode(s string) string
- func SearchStrSlice(values []string, value string) int
- func Set(renderArgs map[string]interface{}, key string, value interface{}) string
- func StrToSlice(s string, sep string) []interface{}
- func Sub(left interface{}, right interface{}) interface{}
- func TemplateTag(name string) string
- func TimestampToTime(timestamp interface{}) time.Time
- func ToCSS(raw string) template.CSS
- func ToDecimal(number interface{}) decimal.Decimal
- func ToDuration(t interface{}, args ...string) time.Duration
- func ToFixed(value interface{}, precision interface{}) string
- func ToFloat64(value interface{}) float64
- func ToHTML(raw string) template.HTML
- func ToHTMLAttr(raw string) template.HTMLAttr
- func ToHTMLAttrs(raw map[string]interface{}) (r map[template.HTMLAttr]interface{})
- func ToJS(raw string) template.JS
- func ToSlice(s ...interface{}) []interface{}
- func ToStrSlice(s ...string) []string
- func ToTime(t interface{}) time.Time
- func ToURL(raw string) template.URL
- func TsToDate(format string, timestamp interface{}) string
- func TsToTime(timestamp interface{}) time.Time
- func URLDecode(s string) string
- func URLValues(values ...interface{}) url.Values
- func UnicodeDecode(str string) string
- func Unquote(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HashSalt = time.Now().Format(time.RFC3339) HashClipPositions = []uint{1, 3, 8, 9} NumberFormat = com.NumberFormat )
View Source
var TplFuncMap template.FuncMap = template.FuncMap{}/* 114 elements not displayed */
Functions ¶
func AddURLValues ¶ added in v1.6.0
func Base64Decode ¶ added in v1.3.5
func CaptchaFormWithURLPrefix ¶ added in v1.4.3
CaptchaFormWithURLPrefix 验证码表单域
func CaptchaVerify ¶
CaptchaVerify 验证码验证
func DelimRight ¶ added in v1.6.0
func DelimRight() string
func DurationFormat ¶ added in v1.3.5
func FriendlyTime ¶
func FriendlyTime(t interface{}, args ...interface{}) string
func InStrSlice ¶
func JSONDecode ¶ added in v1.3.5
func JSONEncode ¶ added in v1.3.5
func NumberTrim ¶ added in v1.4.3
func SafeBase64Decode ¶ added in v1.3.5
func SearchStrSlice ¶
func StrToSlice ¶ added in v1.3.5
func TemplateTag ¶ added in v1.6.0
func TimestampToTime ¶ added in v1.2.0
func ToDuration ¶ added in v1.3.5
func ToHTMLAttr ¶
func ToHTMLAttrs ¶
func ToStrSlice ¶
func UnicodeDecode ¶ added in v1.3.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.