strings

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegexGroup

func GetRegexGroup(regEx, data string, group string) (string, error)

func GetRegexGroups

func GetRegexGroups(regEx, data string) (paramsMap map[string]string)

func JsonifyLax

func JsonifyLax(obj interface{}) string

func JsonifyStrict

func JsonifyStrict(obj interface{}) (string, error)

func NewOrExisting added in v1.7.0

func NewOrExisting(new *string, existing string) string

func Pluralize

func Pluralize(text string, num int) string

func StringLeftJust

func StringLeftJust(text string, filler string, size int) string

func StringRemovePrefix

func StringRemovePrefix(text string, prefix string, trimSpaces bool) string

func TimeDiffDurationString

func TimeDiffDurationString(now time.Time, then time.Time, full bool) string

func UnixEpochToUtcTimestamp

func UnixEpochToUtcTimestamp(epoch int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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