Documentation ¶
Index ¶
Constants ¶
View Source
const ContentTypeJSON = "application/json"
View Source
const ContentTypeProtobuf = "application/protocol-buffers"
Variables ¶
View Source
var (
ErrInvalidData = errors.New("codec: invalid data")
)
Functions ¶
func DecodeJSON ¶
func DecodeProtobuf ¶
func EncodeJSON ¶
func EncodeProtobuf ¶
Types ¶
type DecodeFunc ¶
type EncodeFunc ¶
Click to show internal directories.
Click to hide internal directories.