Documentation ¶
Index ¶
- Variables
- func If(condition bool, valIfTrue, valIfFalse interface{}) interface{}
- func IfEmptyBoolSlice(val []bool, valIfEmpty bool) bool
- func IfEmptyInt(val, valIfEmpty int) int
- func IfEmptyInt32(val, valIfEmpty int32) int32
- func IfEmptyInt32Slice(val []int32, valIfEmpty int32) int32
- func IfEmptyInt64(val, valIfEmpty int64) int64
- func IfEmptyInt64Slice(val []int64, valIfEmpty int64) int64
- func IfEmptyIntSlice(val []int, valIfEmpty int) int
- func IfEmptySlice(val []interface{}, valIfEmpty interface{}) interface{}
- func IfEmptyString(val, valIfEmpty string) string
- func IfEmptyStringSlice(val []string, valIfEmpty string) string
- func IfFloat(condition bool, valIfTrue, valIfFalse float64) float64
- func IfInt(condition bool, valIfTrue, valIfFalse int) int
- func IfInt32(condition bool, valIfTrue, valIfFalse int32) int32
- func IfInt64(condition bool, valIfTrue, valIfFalse int64) int64
- func IfNotEmptyInt(val, valIfNotEmpty int) int
- func IfNotEmptyInt32(val, valIfNotEmpty int32) int32
- func IfNotEmptyInt64(val, valIfNotEmpty int64) int64
- func IfNotEmptyString(val, valIfNotEmpty string) string
- func IfString(condition bool, valIfTrue, valIfFalse string) string
- func IfUser(condition bool, valIfTrue, valIfFalse func() interface{}) interface{}
- func IfUserEmptyInt(val int, valIfEmpty func() int) int
- func IfUserEmptyInt32(val int32, valIfEmpty func() int32) int32
- func IfUserEmptyInt64(val int64, valIfEmpty func() int64) int64
- func IfUserEmptyString(val string, valIfEmpty func() string) string
- func IfUserFloat(condition bool, valIfTrue, valIfFalse func() float64) float64
- func IfUserInt(condition bool, valIfTrue, valIfFalse func() int) int
- func IfUserInt32(condition bool, valIfTrue, valIfFalse func() int32) int32
- func IfUserInt64(condition bool, valIfTrue, valIfFalse func() int64) int64
- func IfUserString(condition bool, valIfTrue, valIfFalse func() string) string
- func PrintArgsLn(a ...interface{})
- func PrintErrArgsLn(a ...interface{})
- func PrintErrLongTimeLn(format string, a ...interface{})
- func PrintErrTimeLn(format string, a ...interface{})
- func PrintErrln(format string, a ...interface{})
- func PrintTimeLn(format string, a ...interface{})
- func Println(format string, a ...interface{})
- func ShortStr(str string, max ...int) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultShortStrMax = 1023
)
Functions ¶
func IfEmptyBoolSlice ¶
func IfEmptyInt ¶
func IfEmptyInt32 ¶
func IfEmptyInt32Slice ¶
func IfEmptyInt64 ¶
func IfEmptyInt64Slice ¶
func IfEmptyIntSlice ¶
func IfEmptySlice ¶
func IfEmptySlice(val []interface{}, valIfEmpty interface{}) interface{}
func IfEmptyString ¶
func IfEmptyStringSlice ¶
func IfNotEmptyInt ¶
func IfNotEmptyInt32 ¶
func IfNotEmptyInt64 ¶
func IfNotEmptyString ¶
func IfUserEmptyInt ¶
func IfUserEmptyInt32 ¶
func IfUserEmptyInt64 ¶
func IfUserEmptyString ¶
func IfUserFloat ¶
func IfUserInt32 ¶
func IfUserInt64 ¶
func IfUserString ¶
func PrintArgsLn ¶
func PrintArgsLn(a ...interface{})
func PrintErrArgsLn ¶
func PrintErrArgsLn(a ...interface{})
func PrintErrLongTimeLn ¶
func PrintErrLongTimeLn(format string, a ...interface{})
func PrintErrTimeLn ¶
func PrintErrTimeLn(format string, a ...interface{})
func PrintErrln ¶
func PrintErrln(format string, a ...interface{})
func PrintTimeLn ¶
func PrintTimeLn(format string, a ...interface{})
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
------------------------------------------------------------------------------ 用于比较两个对象的函数集。
|
------------------------------------------------------------------------------ 用于比较两个对象的函数集。 |
------------------------------------------------------------------------------ 类型转换函数集 ------------------------------------------------------------------------------
|
------------------------------------------------------------------------------ 类型转换函数集 ------------------------------------------------------------------------------ |
------------------------------------------------------------------------------ 对 jsonIter 的进一步封装
|
------------------------------------------------------------------------------ 对 jsonIter 的进一步封装 |
Click to show internal directories.
Click to hide internal directories.