strings

package
v0.0.0-...-d899c81 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{
	"add":          Add,
	"dateFormat":   DateFormat,
	"findRe":       FindRe,
	"findSubRe":    FindSubRe,
	"floatToInt":   FloatToInt,
	"inchesToFeet": InchesToFeet,
	"lower":        ToLower,
	"minify":       MinifyCode,
	"markdown":     Markdown,
	"marshal":      Marshal,
	"matchRe":      MatchRe,
	"replace":      Replace,
	"replaceRe":    ReplaceRe,
	"subtract":     Subtract,
	"trim":         Trim,
	"unescape":     Unescape,
	"upper":        ToUpper,
}

Functions

func Add

func Add(add int, initial int) int

func DateFormat

func DateFormat(date string, args ...string) string

func FindRe

func FindRe(pattern string, input string) string

func FindSubRe

func FindSubRe(pattern string, input string) []string

func FloatToInt

func FloatToInt(n float64) int

func InchesToFeet

func InchesToFeet(inches interface{}) (string, error)

func Markdown

func Markdown(s string) string

func Marshal

func Marshal(d interface{}) string

func MatchRe

func MatchRe(pattern string, input string) bool

func MinifyCode

func MinifyCode(mimetype string, code string) (string, error)

func Replace

func Replace(from, to, input string) string

func ReplaceRe

func ReplaceRe(pattern string, to string, input string) string

func Subtract

func Subtract(sub int, initial int) int

func ToLower

func ToLower(s string) string

func ToUpper

func ToUpper(s string) string

func Trim

func Trim(cutset string, s string) string

func Unescape

func Unescape(s string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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