Documentation
¶
Overview ¶
Package kit holds the small value helpers the x/ packages share: pointer and slice conveniences that adapters (GraphQL, MCP, the store) need when mapping between optional API fields and Go values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrEmpty ¶
func OrEmpty[T any](s []T) []T
OrEmpty is s, or an empty slice when s is nil: a non-null API list.
func SortedKeys ¶
SortedKeys are the keys of m, sorted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.