Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoerceToType ¶
func CoerceToType(v, typ string) interface{}
CoerceToType converts a string value to the appropriate Go type for JSON marshaling.
func ContainsStr ¶
ContainsStr returns true if slice contains s (exact match).
func CopyHeaders ¶
CopyHeaders returns a shallow copy of a string map, safe for mutation.
func DefaultValueForType ¶
func DefaultValueForType(t string) interface{}
DefaultValueForType returns a properly typed default value for a JSON schema type.
func MatchGlob ¶
MatchGlob matches a path against a simple glob pattern. Supports trailing /* for prefix matching and leading * for suffix matching. Exact match is also supported.
func SanitizeID ¶
SanitizeID converts a string to a URL-safe kebab-case identifier.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.