Documentation
¶
Index ¶
- func ByteCountIEC(b int64) string
- func CompareBoolPointers(ptr1 *bool, ptr2 *bool, bothNilReturnTrue ...bool) bool
- func CompareStringPointers(ptr1 *string, ptr2 *string, bothNilReturnTrue ...bool) bool
- func FirstDayOfISOWeek(reference time.Time) time.Time
- func FirstDayOfMonth(reference time.Time) time.Time
- func FirstDayOfYear(reference time.Time) time.Time
- func FirstHourOfDay(reference time.Time) time.Time
- func IsMatchingBoolPointerInMap(ptr1 *bool, rawMap interface{}, key string, bothNilReturnTrue ...bool) bool
- func IsMatchingStringPointerInMap(ptr1 *string, rawMap interface{}, key string, bothNilReturnTrue ...bool) bool
- func IsSameDayWithoutTimezoneSupport(t time.Time, other time.Time) bool
- func MapStringArray(in []string, f func(in string) (string, error)) ([]string, error)
- func PtrToBool(s bool) *bool
- func PtrToDuration(s time.Duration) *time.Duration
- func PtrToFloat32(s float32) *float32
- func PtrToFloat64(s float64) *float64
- func PtrToInt(s int) *int
- func PtrToInt32(s int32) *int32
- func PtrToInt64(s int64) *int64
- func PtrToString(s string) *string
- func PtrToTime(s time.Time) *time.Time
- func SliceContainsItem(slice interface{}, item interface{}) bool
- func StringIndexOf(slice []string, item string) (int, error)
- func StringKeysFromMap(m interface{}) []string
- func SubtractStringArray(a []string, b []string) []string
- func TimeFromMonthAndYear(year int, month int, timeZone string) (*time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountIEC ¶ added in v1.0.11
From https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
func CompareBoolPointers ¶ added in v1.0.12
func CompareStringPointers ¶
func FirstDayOfISOWeek ¶ added in v1.0.9
Figure out which day is the first of an ISOWeek
func FirstDayOfMonth ¶ added in v1.0.9
Get the first day of the month
func FirstDayOfYear ¶ added in v1.0.9
Get the first day of a year
func FirstHourOfDay ¶ added in v1.0.9
Get first hour of a day
func IsMatchingBoolPointerInMap ¶ added in v1.0.12
func IsSameDayWithoutTimezoneSupport ¶ added in v1.0.9
Check if two time.Time are on the same day
func MapStringArray ¶ added in v1.0.8
func PtrToFloat32 ¶ added in v1.0.7
func PtrToFloat64 ¶ added in v1.0.7
func PtrToInt32 ¶ added in v1.0.7
func PtrToInt64 ¶ added in v1.0.7
func PtrToString ¶
func SliceContainsItem ¶
func SliceContainsItem(slice interface{}, item interface{}) bool
SliceContainsItem checks if a slice contains an item
func StringKeysFromMap ¶
func StringKeysFromMap(m interface{}) []string
func SubtractStringArray ¶ added in v1.0.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.