functions

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFunc added in v0.7.0

func DeleteFunc(current *string, delete *bool, values *[]string) func(...string) string

func LowercaseFunc

func LowercaseFunc(lang language.Tag) func(string) string

func ParamFunc

func ParamFunc(r io.Reader, w io.Writer, isTTY bool, params map[string]string) func(string, ...any) (string, error)

func Pluralize

func Pluralize(count int, thing string) string

func PluralizeFunc

func PluralizeFunc(count interface{}, thing string) (string, error)

func Replace added in v0.6.0

func Replace(from, to, source string) string

func TitlecaseFunc

func TitlecaseFunc(lang language.Tag) func(string) string

func UppercaseFunc

func UppercaseFunc(lang language.Tag) func(string) string

Types

type Date added in v0.3.0

type Date struct {
	// contains filtered or unexported fields
}

func DateFunc added in v0.3.0

func DateFunc() Date

func (Date) Format added in v0.3.0

func (d Date) Format(layout string) string

func (Date) Local added in v0.3.0

func (d Date) Local() Date

func (Date) Year added in v0.3.0

func (d Date) Year() int

Jump to

Keyboard shortcuts

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