Documentation ¶
Index ¶
- func CurrentLeftDuration(startTime meta.Time, timeoutSec *int64) time.Duration
- func FromJson(jsonStr string, objAddr interface{})
- func FromJsonBytes(jsonBytes []byte, objAddr interface{})
- func FromYaml(yamlStr string, objAddr interface{})
- func GetCallStack() string
- func GetEnv(key, fallback string) string
- func GetPanicDetails(recoveredObj interface{}) string
- func InitAll()
- func InitLogger()
- func InitRandSeed()
- func Int32MapKeys(m map[int32]int32) []int32
- func Int32SliceContains(n []int32, i int32) bool
- func Int32ToString(i int32) string
- func IsTimeout(leftDuration time.Duration) bool
- func NewStopChannel() <-chan struct{}
- func NilBool() *bool
- func NilInt32() *int32
- func PtrBool(o bool) *bool
- func PtrFloat64(o float64) *float64
- func PtrInt32(o int32) *int32
- func PtrInt64(o int64) *int64
- func PtrNow() *meta.Time
- func PtrString(o string) *string
- func PtrUID(o types.UID) *types.UID
- func PtrUIDStr(s string) *types.UID
- func Quote(s string) string
- func RandInt64(min int64, max int64) int64
- func ReferEnvVar(name string) string
- func SecToDuration(sec *int64) time.Duration
- func SortInt32(n []int32)
- func StringToInt32(s string) int32
- func StringsContains(s []string, e string) bool
- func ToIndicesString(indices []int32) string
- func ToJson(obj interface{}) string
- func ToJsonBytes(obj interface{}) []byte
- func ToYaml(obj interface{}) string
- type Empty
- type ImmutableSet
- type KlogWriter
- type Set
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentLeftDuration ¶
func FromJsonBytes ¶
func FromJsonBytes(jsonBytes []byte, objAddr interface{})
func GetCallStack ¶
func GetCallStack() string
func GetPanicDetails ¶
func GetPanicDetails(recoveredObj interface{}) string
func InitLogger ¶
func InitLogger()
func InitRandSeed ¶
func InitRandSeed()
func Int32MapKeys ¶ added in v0.3.1
func Int32SliceContains ¶ added in v0.2.4
func Int32ToString ¶
func NewStopChannel ¶
func NewStopChannel() <-chan struct{}
func PtrFloat64 ¶
func ReferEnvVar ¶
func SecToDuration ¶
func StringToInt32 ¶
func StringsContains ¶
func ToIndicesString ¶
func ToJsonBytes ¶
func ToJsonBytes(obj interface{}) []byte
Types ¶
type ImmutableSet ¶
type ImmutableSet struct {
// contains filtered or unexported fields
}
func NewImmutableSet ¶
func NewImmutableSet(items ...T) ImmutableSet
func (ImmutableSet) Contains ¶
func (s ImmutableSet) Contains(item T) bool
type KlogWriter ¶
type KlogWriter struct{}
Click to show internal directories.
Click to hide internal directories.