Documentation ¶
Index ¶
- func Compare(a, b interface{}) int
- func ComputeUnary(op string, input interface{}) (interface{}, error)
- func Escape(input string, flag EscapeFlag) string
- func FirstNonEmptyString(first string, second string, others ...string) string
- func FirstNonZeroInt(first, second int, others ...int) int
- func FirstNonZeroInt32(first, second int32, others ...int32) int32
- func FirstNonZeroInt64(first, second int64, others ...int64) int64
- func IsBlank(s string) bool
- func IsFloat32Equal(f1, f2 float32) bool
- func IsFloat64Equal(f1, f2 float64) bool
- func IsZero(value interface{}) bool
- func MustFirstNonEmptyString(first, second string, others ...string) string
- func PadLeft(str, pad string, length int) string
- func PadRight(str, pad string, length int) string
- func SortInt32s(s []int32)
- func Unescape(s string, ignores ...rune) string
- func WriteEscape(sb *strings.Builder, input string, flag EscapeFlag)
- type EscapeFlag
- type Liker
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeUnary ¶
func Escape ¶
func Escape(input string, flag EscapeFlag) string
func FirstNonEmptyString ¶
func FirstNonZeroInt ¶
func FirstNonZeroInt32 ¶
func FirstNonZeroInt64 ¶
func IsFloat32Equal ¶
func IsFloat64Equal ¶
func MustFirstNonEmptyString ¶
func SortInt32s ¶
func SortInt32s(s []int32)
func WriteEscape ¶
func WriteEscape(sb *strings.Builder, input string, flag EscapeFlag)
Types ¶
type EscapeFlag ¶
type EscapeFlag uint8
const ( EscapeSingleQuote EscapeFlag EscapeDoubleQuote EscapeLike )
Click to show internal directories.
Click to hide internal directories.