package
0.12.4-alpha.3
Repository: https://github.com/goto/guardian.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetGlobalURN returns a GlobalURN for a given source, scope, kind and identifier format is urn:<source>:<scope>:<kind>:<identifier>.
GetReadableDuration returns a human-readable duration string in integer days preferably, or the original string if it's either not a valid duration or a days value is not integer.
No description provided by the author
IsValidUUID returns true if uuid is valid.
MapToSlice converts map[string]string to []string Example: Input: map[string]string{ "key1": "value1", "key2": "value2", "key3": "value3"} Output: []string{"key1=value1", "key2=value2", "key3=value3"}.
ReturnJSON writes JSON to the response body.
StructToMap converts a struct to a map using json marshalling.
No description provided by the author
ValidateStruct validates the struct and returns error if there is any invalid values.

# Constants

No description provided by the author

# Structs

AnyTime is used to expect arbitrary time value.

# Interfaces

No description provided by the author