funcmaps

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(values ...interface{}) (result int64)

func AddFloat

func AddFloat(values ...interface{}) (result float64)

func AsCSS

func AsCSS(input interface{}) template.CSS

func AsHTML

func AsHTML(input interface{}) template.HTML

func AsHTMLAttr

func AsHTMLAttr(input interface{}) template.HTMLAttr

func AsJS

func AsJS(input interface{}) template.JS

func AsURL

func AsURL(input interface{}) template.URL

func BaseName

func BaseName(path string) (name string)

func CmpLang

func CmpLang(a interface{}, other ...interface{}) (equal bool, err error)

func CompareDateFormats

func CompareDateFormats(format string, a, b time.Time) (same bool)

func Div

func Div(a, b interface{}) (result int64)

func DivFloat

func DivFloat(a, b interface{}) (result float64)

func Element

func Element(data map[string]interface{}) (html template.HTML, err error)

func ElementAttributes

func ElementAttributes(value interface{}) (html template.HTMLAttr)

func ElementClose

func ElementClose(data map[string]interface{}) (html template.HTML, err error)

func ElementOpen

func ElementOpen(data map[string]interface{}) (html template.HTML, err error)

func EscapeHtml

func EscapeHtml(input interface{}) (out template.HTML)

func EscapeJsonString

func EscapeJsonString(input interface{}) (value string)

func EscapeUrlPath

func EscapeUrlPath(input interface{}) (escaped string)

func FilterStrings

func FilterStrings(pattern string, values []string) (filtered []string)

func Float

func Float(v interface{}) (i float64)

func FsExists

func FsExists(path string) (exists bool)

func FsHash

func FsHash(path string) (shasum string)

func FsListAllDirs

func FsListAllDirs(path string) (files []string)

func FsListAllFiles

func FsListAllFiles(path string) (files []string)

func FsListDirs

func FsListDirs(path string) (files []string)

func FsListFiles

func FsListFiles(path string) (files []string)

func FsMime

func FsMime(path string) (mime string)

func FsUrl

func FsUrl(path string) (url string)

func HtmlFuncMap

func HtmlFuncMap() (funcMap htmlTemplate.FuncMap)

func Int

func Int(v interface{}) (i int64)

func IsPath

func IsPath(value string) (ok bool)

func IsUrl

func IsUrl(value string) (ok bool)

func Iterate

func Iterate(argv ...int) (ch chan int)

func LogDebug

func LogDebug(format string, argv ...interface{}) (html template.HTML)

func LogError

func LogError(format string, argv ...interface{}) (html template.HTML)

func LogWarn

func LogWarn(format string, argv ...interface{}) (html template.HTML)

func MergeClassNames

func MergeClassNames(names ...interface{}) (result template.HTML)

func Mod

func Mod(a, b interface{}) (result int64)

func Mul

func Mul(a, b interface{}) (result int64)

func MulFloat

func MulFloat(a, b interface{}) (result float64)

func Nonce

func Nonce(name string) (value string)

func NumberAsInt

func NumberAsInt(v interface{}) (value int)

func ParseUrl

func ParseUrl(value string) (u *url.URL)

func ReverseStrings

func ReverseStrings(v []string) (reversed []string)

func SortedFirstLetters

func SortedFirstLetters(values []interface{}) (firsts []string)

func SortedKeys

func SortedKeys(v interface{}) (keys []string)

func SortedLastNameFirstLetters

func SortedLastNameFirstLetters(values []interface{}) (firsts []string)

func SortedStrings

func SortedStrings(values []string) (sorted []string)

func SplitString

func SplitString(v, delim string) (parts []string)

func StringsAsList

func StringsAsList(v ...string) (list []string)

func Sub

func Sub(values ...interface{}) (result int64)

func SubFloat

func SubFloat(values ...interface{}) (result float64)

func TextFuncMap

func TextFuncMap() (funcMap textTemplate.FuncMap)

func UnescapeHtml

func UnescapeHtml(input interface{}) (out template.HTML)

Types

This section is empty.

Jump to

Keyboard shortcuts

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