util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{
	"toTitle":       ToTitle,
	"toLower":       ToLower,
	"concat":        Concat,
	"basePath":      BasePath,
	"hasPrefix":     strings.HasPrefix,
	"replaceDashes": ReplaceDash,
	"args":          args,
	"increment":     increment,
	"log":           templateLog,
	"listContains":  ListContains,
	"derefBoolPtr":  derefBoolPtr,
}

Functions

func BasePath

func BasePath(val string) string

func Concat

func Concat(values ...string) string

func GetInterfaceType

func GetInterfaceType(val interface{}) string

func ListContains

func ListContains(list []string, needle string) bool

func ReplaceDash

func ReplaceDash(val string) string

func ToLower

func ToLower(val string) string

func ToTitle

func ToTitle(val string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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