Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
func Marshal(contentType ContentType, v interface{}) ([]byte, error)
func Unmarshal ¶
func Unmarshal(contentType ContentType, data []byte, v interface{}) error
Types ¶
type ContentType ¶
type ContentType string
const ( JSON ContentType = "json" TOML ContentType = "toml" )
Click to show internal directories.
Click to hide internal directories.