Documentation ¶
Index ¶
- func CmdHelp(cmd *cobra.Command, _ []string)
- func ConvertInt64PToFloat64P(i *int64) *float64
- func Float64Ptr(f float64) *float64
- func Int64Ptr(i int64) *int64
- func JoinStringKeys(m map[string]any, sep string) string
- func JoinStringKeysPtr(m map[string]any, sep string) string
- func Ptr[T any](v T) *T
- func PtrString[T any](t *T) string
- func ValidateURLDomain(value string) error
- func ValidateUUID(value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdHelp ¶
CmdHelp is used to explicitly set the Run function for non-leaf commands to the command help function, so that we can catch invalid commands This is a workaround needed due to the open issue on the Cobra repo: https://github.com/spf13/cobra/issues/706
func ConvertInt64PToFloat64P ¶ added in v0.2.3
ConvertInt64PToFloat64P converts an int64 pointer to a float64 pointer This function will return nil if the input is nil
func Float64Ptr ¶ added in v0.2.3
Float64Ptr returns a pointer to a float64 Needed because the Ptr function only returns pointer to float
func Int64Ptr ¶ added in v0.2.3
Int64Ptr returns a pointer to an int64 Needed because the Ptr function only returns pointer to int
func JoinStringKeys ¶ added in v0.21.0
JoinStringKeys concatenates the string keys of a map, each separatore by the [sep] string.
func JoinStringKeysPtr ¶ added in v0.21.0
JoinStringKeysPtr concatenates the string keys of a map pointer, each separatore by the [sep] string.
func PtrString ¶ added in v0.20.0
PtrString creates a string representation of a passed object pointer or returns an empty string, if the passed object is _nil_.
func ValidateURLDomain ¶ added in v0.12.0
func ValidateUUID ¶
ValidateUUID validates if the provided string is a valid UUID
Types ¶
This section is empty.