Documentation
¶
Index ¶
- func BoolPtr(v bool) *bool
- func ByteSlicePtr(v []byte) *[]byte
- func Float32Ptr(v float32) *float32
- func Float64Ptr(v float64) *float64
- func Int32Ptr(v int32) *int32
- func Int64Ptr(v int64) *int64
- func IntPtr(v int) *int
- func IsSafeKey(s string) (bool, string)
- func IsSafeValue(s string) (bool, string)
- func NewSecureRandomKey() string
- func Round(f float64) int
- func SafeString(s interface{}) (ret string)
- func SafeStringWithDefault(s interface{}, deft string) (ret string)
- func SafeUint(s interface{}) (ret uint)
- func StringPtr(v string) *string
- func TimeNow() string
- func Uint32Ptr(v uint32) *uint32
- func Uint64Ptr(v uint64) *uint64
- func UintPtr(v uint) *uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSafeValue ¶
IsSafeValue return if the value is safe to store
func NewSecureRandomKey ¶
func NewSecureRandomKey() string
NewSecureRandomKey creates a new secure random key
func SafeStringWithDefault ¶
SafeStringWithDefault parse an interface to string and set it to default value if it's empty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.