Documentation ¶
Index ¶
- func GetOptArg(opts []interface{}, defaultValue ...interface{}) interface{}
- func GetOptBoolArg(opts []bool, defaultValue ...bool) bool
- func GetOptInt32Arg(opts []int32, defaultValue ...int32) int32
- func GetOptInt64Arg(opts []int64, defaultValue ...int64) int64
- func GetOptIntArg(opts []int, defaultValue ...int) int
- func GetOptStringArg(opts []string, defaultValue ...string) string
- func UIntPtr(i uint) *uint
- func UIntPtr32(i uint32) *uint32
- func UIntPtr64(i uint64) *uint64
- type Bool
- type BoolPtr
- type Int
- type Int16Ptr
- type Int32Arr
- type Int32Ptr
- type Int64Arr
- type Int64Ptr
- type IntArr
- type IntPtr
- type String
- func (s String) MaskLeft(NLeft int, char rune) string
- func (s String) MaskRight(NLeft int, char rune) string
- func (s String) MustToBool() bool
- func (s String) MustToInt() int
- func (s String) ToBool() (bool, error)
- func (s String) ToInt() (int, error)
- func (s String) ToIntArr(separator ...string) ([]int, error)
- func (s String) ToStringArr(separator ...string) ([]string, error)
- func (s String) ToStringPtr() *string
- type StringPtr
- type UInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOptBoolArg ¶
func GetOptInt32Arg ¶
func GetOptInt64Arg ¶
func GetOptIntArg ¶
func GetOptStringArg ¶
Types ¶
type Int ¶
type Int int
func (Int) ToInt16Ptr ¶
func (Int) ToInt32Ptr ¶
func (Int) ToInt64Ptr ¶
type IntArr ¶
type IntArr []int
func (IntArr) ToInt32Arr ¶
func (IntArr) ToInt32PtrArr ¶
func (IntArr) ToInt64Arr ¶
func (IntArr) ToInt64PtrArr ¶
type String ¶
type String string
func (String) MaskLeft ¶
MaskLeft mask string with a char(rune) and left n value on the left side Example: String("MASKED:NOT_MASKED").MaskLeft(11, '*') returns ******:NOT_MASKED
func (String) MaskRight ¶
MaskRight mask string with a char(rune) and left n value on the right side Example: String("NOT_MASKED:MASKED").MaskRight(11, '*') returns NOT_MASKED:******
func (String) MustToBool ¶
MustToBool cast String to bool with panic on error instead
func (String) ToStringArr ¶
ToStringArr cast String to array of string
func (String) ToStringPtr ¶
type UInt ¶
type UInt uint
func (UInt) ToUIntPtr32 ¶
func (UInt) ToUIntPtr64 ¶
Click to show internal directories.
Click to hide internal directories.