Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalEnum ¶
func MarshalEnum[S comparable](from S, m map[string]S) ([]byte, error)
func MarshalToFile ¶
MarshalToFile marshals from into a json byte stream that is written to fpath. It happens atomically using a temporary file
func UnmarshalEnum ¶
func UnmarshalEnum[S comparable](to *S, data []byte, m map[string]S) error
func UnmarshalFromFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.