Documentation ¶
Index ¶
- func Contains(s []string, e string) bool
- func ConvertCamelCaseToKebabCase(name string) string
- func ConvertToDNS1123SubdomainCompatibleString(name string) string
- func CopyMap(o map[string]string) (r map[string]string)
- func MarshalObjToStruct(input interface{}) (*structpb.Struct, error)deprecated
- func MarshalStruct(in proto.Message, out *structpb.Struct) errordeprecated
- func MarshalToString(msg proto.Message) (string, error)deprecated
- func UnionMaps(maps ...map[string]string) map[string]string
- func UnmarshalStruct(structObj *structpb.Struct, msg proto.Message) errordeprecated
- func UnmarshalStructToObj(structObj *structpb.Struct, obj interface{}) errordeprecated
- type ErrorCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCamelCaseToKebabCase ¶
ConvertCamelCaseToKebabCase rewrites a string written in camel case (e.g. PenPineappleApplePen) in kebab case (pen-pineapple-apple-pen)
func ConvertToDNS1123SubdomainCompatibleString ¶
ConvertToDNS1123SubdomainCompatibleString converts a string that doesn't conform to the definition of a subdomain in DNS (RFC 1123) to a string that conforms. It doesn't do well on labels (separated by dots) starting or ending with hyphens.
func MarshalObjToStruct
deprecated
func MarshalToString
deprecated
func UnionMaps ¶
This function unions a list of maps (each can be nil or populated) by allocating a new map. Conflicting keys will always defer to the later input map's corresponding value.
func UnmarshalStructToObj
deprecated
Types ¶
type ErrorCollection ¶
type ErrorCollection struct {
Errors []error
}
func (ErrorCollection) Error ¶
func (e ErrorCollection) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.