Documentation ¶
Index ¶
- func EmptyIfNil(s *string) string
- func HasPrefix(s, prefix string) bool
- func NilIfEmpty(s string) *string
- func NilPointersArrayIfEmpty(in []*string) []*string
- func NilPointersMapIfEmpty(in map[string]*string) map[string]*string
- func Pointer(s string) *string
- func ToPointersArray(in []string) []*string
- func ToPointersMap(in map[string]string) map[string]*string
- func ToValuesArray(in []*string) []string
- func ToValuesMap(in map[string]*string) map[string]string
- func Value(s *string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyIfNil ¶
EmptyIfNil returns an empty string if the provided *string is nil, or else the value the provided pointer points to.
func NilIfEmpty ¶
NilIfEmpty returns nil if the provided string is empty, or else a pointer to the provided string.
func NilPointersArrayIfEmpty ¶
NilPointersArrayIfEmpty returns nil if the provided []*string array is empty, or the provided array otherwise.
func NilPointersMapIfEmpty ¶
NilPointersMapIfEmpty returns nil if the provided map[string]*string is empty, or the provided map otherwise.
func ToPointersArray ¶
ToPointersArray converts the provided []string into a []*string.
func ToPointersMap ¶
ToPointersMap converts the provided map[string]string into a map[string]*string.
func ToValuesArray ¶
ToValuesArray converts the provided []*string into a []string.
func ToValuesMap ¶
ToValuesMap converts the provided map[string]*string into a map[string]string.
Types ¶
This section is empty.