filters

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 12 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 CamelLowerCase added in v0.15.6

func CamelLowerCase(s string) string

CamelCase returns a string representation of the value in CamelCase.

func CamelTitleCase added in v0.15.6

func CamelTitleCase(s string) string

CamelTitleCase returns a string representation of the value in CamelTitleCase.

func CamelUpperCase added in v0.15.6

func CamelUpperCase(s string) string

CamelUpperCase returns a string representation of the value in CamelCase.

func DotLowerCase added in v0.15.6

func DotLowerCase(s string) string

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

func DotTitleCase added in v0.15.6

func DotTitleCase(s string) string

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

func DotUpperCase added in v0.15.6

func DotUpperCase(s string) string

DotUpperCase 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, prefix string, postfix string, wc strcase.WordCase) string

func IntToWordLower added in v0.15.5

func IntToWordLower(i int, prefix string, postfix string) string

func IntToWordTitle added in v0.15.5

func IntToWordTitle(i int, prefix string, postfix string) string

func IntToWordUpper added in v0.15.5

func IntToWordUpper(i int, prefix string, postfix string) string

func Join

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

func KebabLowerCase added in v0.15.6

func KebabLowerCase(s string) string

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

func KebabTitleCase added in v0.15.6

func KebabTitleCase(s string) string

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

func KebabUpperCase added in v0.15.6

func KebabUpperCase(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 NewLine added in v0.13.9

func NewLine() string

func PathLowerCase added in v0.15.6

func PathLowerCase(s string) string

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

func PathTitleCase added in v0.15.6

func PathTitleCase(s string) string

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

func PathUpperCase added in v0.15.6

func PathUpperCase(s string) string

PathUpperCase 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 SnakeCaseLower

func SnakeCaseLower(s string) string

SnakeCaseLower returns a string representation of the value in snake_case.

func SnakeTitleCase added in v0.15.6

func SnakeTitleCase(s string) string

SnakeTitleCase returns a string representation of the value in snake_case.

func SnakeUpperCase added in v0.15.6

func SnakeUpperCase(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