Documentation ¶
Index ¶
- func BoolPointer(val bool) *bool
- func ContainsString(value string, values []string) bool
- func DurationPointer(d time.Duration) *time.Duration
- func Float64Pointer(num float64) *float64
- func FormCompositeKey(objectType string, attributes ...string) string
- func Hash(value string) string
- func Int64Pointer(num int64) *int64
- func IntPointer(num int) *int
- func MustEncode(v interface{}) string
- func Prettify(obj interface{}) string
- func SplitCompositeKey(compositeKey string) (string, []string)
- func StringPointer(str string) *string
- func Uint64Pointer(num uint64) *uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString checks whether the `values` string slice contains `value`.
func DurationPointer ¶
DurationPointer returns time.Duration pointer.
func Float64Pointer ¶
Float64Pointer returns float64 pointer.
func FormCompositeKey ¶
FormCompositeKey provides composite key for specified `objectType` by combining the given `attributes`.
func MustEncode ¶
func MustEncode(v interface{}) string
MustEncode tries to serialize object without error, otherwise it panics.
func Prettify ¶
func Prettify(obj interface{}) string
Prettify returns a JSON-like properly indented string representation of objects. delimited with space.
func SplitCompositeKey ¶
SplitCompositeKey retrieves object type and attributes from `compositeKey`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.