Documentation
¶
Index ¶
- func CompareNullableIntsWithNilAsInfinity(a, b *int64) int
- func CreateMytokenSubject(oidcSub, oidcIss string) string
- func GetBoolFromAnyMap(m map[string]any, key string) bool
- func GetStringFromAnyMap(m map[string]any, key string) string
- func OR(bools ...bool) bool
- func ORErrors(errs ...error) error
- func RSplitN(s, del string, n int) []string
- func SplitIgnoreEmpty(s, del string) (ret []string)
- func StructToStringMap(st interface{}, tag string) map[string]string
- func StructToStringMapUsingJSONTags(st interface{}) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareNullableIntsWithNilAsInfinity ¶ added in v0.10.0
CompareNullableIntsWithNilAsInfinity compare two *int64 and handles nil as infinity. It returns 0 if both are equal, a positive value if a is greater than b, a negative value if a is less than b
func CreateMytokenSubject ¶
CreateMytokenSubject creates the subject of a Mytoken from the oidc subject and oidc issuer
func GetBoolFromAnyMap ¶ added in v0.10.0
GetBoolFromAnyMap returns a bool value from a map[string]any
func GetStringFromAnyMap ¶ added in v0.10.0
GetStringFromAnyMap returns a string value from a map[string]any
func RSplitN ¶ added in v0.10.0
RSplitN splits a string s at the delimiter del into n pieces. Unlike strings.SplitN RSplitN splits the string starting from the right side
func SplitIgnoreEmpty ¶ added in v0.10.0
SplitIgnoreEmpty splits a string at the specified delimiter without generating empty parts
func StructToStringMap ¶ added in v0.10.0
StructToStringMap creates a string map from an interface{} using the passed tag name
func StructToStringMapUsingJSONTags ¶ added in v0.10.0
StructToStringMapUsingJSONTags creates a string map from an interface{} using json tags
Types ¶
This section is empty.