filters

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WORDS = []string{
	"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
	"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty",
}

Functions

func CamelCase

func CamelCase(s string) string

CamelCase returns a string representation of the value in CamelCase.

func CamelCaseLower

func CamelCaseLower(s string) string

CamelCase returns a string representation of the value in CamelCase.

func CamelCaseUpper added in v0.9.0

func CamelCaseUpper(s string) string

func DotCase

func DotCase(s string) string

DotCase returns a string representation of the value in dot.case

func DotCaseLower

func DotCaseLower(s string) string

DotCaseLower returns a string representation of the value in dot.case

func DotCaseUpper

func DotCaseUpper(s string) string

DotCaseUpper returns a string representation of the value in DOT.CASE

func FirstChar

func FirstChar(s string) string

FirstChar returns the first character of the value.

func FirstCharLower

func FirstCharLower(s string) string

FirstCharLower returns the first character of the value in lowercase.

func FirstCharUpper

func FirstCharUpper(s string) string

FirstCharUpper returns the first character of the value in UPPER CASE.

func IntToWord added in v0.9.0

func IntToWord(i int, postfix string) string

func Join

func Join(sep string, a []string) string

func KebabCase

func KebabCase(s string) string

KebabCase returns a string representation of the value in kebab-case.

func KebabCaseLower

func KebabCaseLower(s string) string

KebapCaseLower returns a string representation of the value in kebap-case.

func KebabCaseUpper

func KebabCaseUpper(s string) string

KebapCaseUpper returns a string representation of the value in KEBAP-CASE.

func LowerCase

func LowerCase(s string) string

LowerCase returns a string representation of the value in lowercase.

func LowerFirst

func LowerFirst(s string) string

LowerFirst returns a string representation of the value with the first character in lowercase.

func PathCase

func PathCase(s string) string

PathCase returns a string representation of the value in path/case.

func PathCaseLower

func PathCaseLower(s string) string

PathCaseLower returns a string representation of the value in path/case.

func PathCaseUpper

func PathCaseUpper(s string) string

PathCaseUpper returns a string representation of the value in PATH/CASE.

func Pluralize added in v0.9.0

func Pluralize(s string, i int) string

func PopulateFuncMap

func PopulateFuncMap() template.FuncMap

func Replace added in v0.8.0

func Replace(s, old, new string) string

func SnakeCase

func SnakeCase(s string) string

SnakeCase returns a string representation of the value in snake_case.

func SnakeCaseLower

func SnakeCaseLower(s string) string

SnakeCaseLower returns a string representation of the value in snake_case.

func SnakeCaseUpper

func SnakeCaseUpper(s string) string

First returns the first character of the value.

func TrimPrefix added in v0.8.0

func TrimPrefix(s, prefix string) string

func TrimSuffix added in v0.8.0

func TrimSuffix(s, postfix string) string

func UpperCase

func UpperCase(s string) string

UpperCase returns a string representation of the value in UPPER CASE.

func UpperFirst

func UpperFirst(s string) string

UpperFirst returns a string representation of the value with the first character in UPPER CASE.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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