Documentation
¶
Index ¶
- func CurrentLeftDuration(startTime meta.Time, timeoutSec *int64) time.Duration
- func FromYaml(yamlStr string, objAddr interface{})
- func InitAll()
- func InitLogger()
- func InitRandSeed()
- func IsTimeout(leftDuration time.Duration) bool
- func LogLines(format string, args ...interface{})
- 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 ToYaml(obj interface{}) string
- type Empty
- type ImmutableSet
- type LogHook
- type Set
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentLeftDuration ¶
func InitLogger ¶
func InitLogger()
func InitRandSeed ¶
func InitRandSeed()
func PtrFloat64 ¶
func ReferEnvVar ¶
func SecToDuration ¶
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
Click to show internal directories.
Click to hide internal directories.