package
0.40.0
Repository: https://github.com/radius-project/radius.git
Documentation: pkg.go.dev

# Functions

Bool returns the boolean value of the pointer passed in, or false if the pointer is nil.
Float32 returns the value of the float32 pointer if it is not nil, otherwise it returns 0.0.
Float64 returns the value of the float64 pointer if it is not nil, otherwise it returns 0.0.
Int returns the value of the pointer if it is not nil, otherwise it returns 0.
Int32 checks if the pointer to an int32 is nil and returns the int32 value if it is not nil, otherwise it returns 0.
Int64 returns the int64 value of the pointer passed in, or 0 if the pointer is nil.
Ptr takes in a value of any type and returns a pointer to that value.
SliceOfPtrs takes in a variable number of arguments of any type and returns a slice of pointers to those arguments.
String returns the string pointed to by s if s is not nil, otherwise it returns an empty string.
StringMap takes in a map of strings and pointers to strings and returns a map of strings with empty strings in place of nil pointers.
StringMapPtr creates a new map with string keys and pointer values from an existing map with string keys and string values.
StringSlice returns a string slice value for the passed string slice pointer.