uhelpers

package module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareStringPointers

func CompareStringPointers(ptr1 *string, ptr2 *string, bothNilReturnTrue ...bool) bool

func IsMatchingStringPointerInMap

func IsMatchingStringPointerInMap(ptr1 *string, rawMap interface{}, key string, bothNilReturnTrue ...bool) bool

func PtrToBool

func PtrToBool(s bool) *bool

func PtrToString

func PtrToString(s string) *string

func PtrToTime

func PtrToTime(s time.Time) *time.Time

func SliceContainsItem

func SliceContainsItem(slice interface{}, item interface{}) bool

SliceContainsItem checks if a slice contains an item

func StringIndexOf added in v1.0.6

func StringIndexOf(slice []string, item string) (int, error)

func StringKeysFromMap

func StringKeysFromMap(m interface{}) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL