Documentation ¶
Overview ¶
Package helper provide some basic utility functions.
Index ¶
- func BoolPointer(b bool) *bool
- func ContainsElements(ref, elems map[string]string) bool
- func ContainsString(slice []string, s string) bool
- func Int32Pointer(i int32) *int32
- func Int64Pointer(i int64) *int64
- func Int64PointerOrNil(i int64) *int64
- func RemoveString(slice []string, s string) (result []string)
- func StringPointer(s string) *string
- func StringPointerOrNil(s string) *string
- func StringValue(s *string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsElements ¶
ContainsElements returns if a given map[string]string contains all elements given in parameter.
func ContainsString ¶
ContainsString returns if given slice contains string.
func Int64PointerOrNil ¶
Int64PointerOrNil returns a pointer on given int or nil if zero
func RemoveString ¶
RemoveString remove given string from given slice and returns it.
func StringPointer ¶
StringPointer converts a string value to a string pointer.
func StringPointerOrNil ¶
StringPointerOrNil converts a string value to a string pointer or nil if empty string.
func StringValue ¶
StringValue converts a string pointer to a string value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.