Documentation ¶
Index ¶
- func Bool(val bool) string
- func Complex128(val complex128) string
- func Complex64(val complex64) string
- func EnsurePrefix(str string, prefix string) string
- func EnsureSuffix(str string, suffix string) string
- func Float32(val float32) string
- func Float64(val float64) string
- func HasPrefixAndSuffix(str string, substr string) bool
- func Indent(str string, indent string) string
- func Index(index int) string
- func Int(val int) string
- func Int16(val int16) string
- func Int32(val int32) string
- func Int64(val int64) string
- func Int8(val int8) string
- func LongestCommonPrefix(strs ...string) string
- func MaskString(str string, numPlain int) string
- func MaxLen(strs ...string) int
- func Obj(val interface{}) string
- func ObjFlat(val interface{}) string
- func ObjFlatNoQuotes(val interface{}) string
- func ParseBool(valStr string) (bool, bool)
- func ParseFloat32(valStr string) (float32, bool)
- func ParseFloat64(valStr string) (float64, bool)
- func ParseInt(valStr string) (int, bool)
- func ParseInt16(valStr string) (int16, bool)
- func ParseInt32(valStr string) (int32, bool)
- func ParseInt64(valStr string) (int64, bool)
- func ParseInt8(valStr string) (int8, bool)
- func Round(val float64, decimalPlaces int, pad bool) string
- func StrsAnd(strs []string) string
- func StrsOr(strs []string) string
- func StrsSentence(strs []string, lastJoinWord string) string
- func ToTitle(str string) string
- func TrimPrefixAndSuffix(str string, substr string) string
- func TrimPrefixIfPresentInAll(strs []string, prefix string) ([]string, bool)
- func TruncateEllipses(str string, maxLength int) string
- func Uint(val uint) string
- func Uint16(val uint16) string
- func Uint32(val uint32) string
- func Uint64(val uint64) string
- func Uint8(val uint8) string
- func Uintptr(val uintptr) string
- func UserStr(val interface{}) string
- func UserStrStripped(val interface{}) string
- func UserStrValue(val reflect.Value) string
- func UserStrs(val interface{}) []string
- func UserStrsAnd(vals interface{}) string
- func UserStrsOr(vals interface{}) string
- func YesNo(val bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶ added in v0.4.0
func Complex128(val complex128) string
func EnsurePrefix ¶ added in v0.4.0
func EnsureSuffix ¶ added in v0.4.0
func HasPrefixAndSuffix ¶ added in v0.4.0
func LongestCommonPrefix ¶ added in v0.4.0
func MaskString ¶ added in v0.4.0
MaskString omits no more than half of the string
func ObjFlatNoQuotes ¶ added in v0.6.0
func ObjFlatNoQuotes(val interface{}) string
func ParseFloat32 ¶ added in v0.4.0
func ParseFloat64 ¶ added in v0.4.0
func ParseInt16 ¶ added in v0.4.0
func ParseInt32 ¶ added in v0.4.0
func ParseInt64 ¶ added in v0.4.0
func StrsSentence ¶ added in v0.4.0
func TrimPrefixAndSuffix ¶ added in v0.4.0
func TrimPrefixIfPresentInAll ¶ added in v0.4.0
func TruncateEllipses ¶ added in v0.8.0
func UserStrStripped ¶ added in v0.4.0
func UserStrStripped(val interface{}) string
func UserStrValue ¶ added in v0.4.0
func UserStrsAnd ¶ added in v0.4.0
func UserStrsAnd(vals interface{}) string
func UserStrsOr ¶ added in v0.4.0
func UserStrsOr(vals interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.