Documentation ¶
Index ¶
- func FormatSlice(a []string) string
- func HasDuplicates(resources []string) bool
- func InterfaceSlice(slice interface{}) []interface{}
- func Sleep(ctx context.Context, dur time.Duration) error
- func ToStringSliceE(i interface{}) ([]string, error)
- func Uint64ToInt(i uint64) int
- func Uint64ToInt64(i uint64) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSlice ¶
func HasDuplicates ¶ added in v0.3.2
func InterfaceSlice ¶ added in v0.7.2
func InterfaceSlice(slice interface{}) []interface{}
InterfaceSlice converts any interface{} into a []interface{} slice
func Sleep ¶ added in v0.11.0
Sleep pauses for the given duration or aborts immediately if the given context is canceled
func ToStringSliceE ¶ added in v0.8.10
func Uint64ToInt ¶ added in v0.12.1
func Uint64ToInt64 ¶ added in v0.7.8
Uint64ToInt64 if value is bigger than math.MaxInt64 return math.MaxInt64 otherwise returns original value casted to int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.