codec

package module
v0.0.0-...-f543487 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 3 Imported by: 1

README

codec

Documentation

Overview

Package codec presents interface (and its implementation sets) of a codec functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(dst interface{}, src io.Reader) error
	DecodeWithDisallowUnknownFields(dst interface{}, src io.Reader) error
	DecodeStringBase64(str string) (string, error)
	DecodeOutURLValues(dst interface{}, src url.Values) error
	ConverterRegistrationForDecodeOutURLValues(value interface{}, converterFunc func(string) reflect.Value)
}

Decoder provides decoding functions.

type Encoder

type Encoder interface {
	EncodeStringToBase64(str string) string
}

Encoder provides encoding functions.

type Marshaler

type Marshaler interface {
	Marshal(v interface{}) ([]byte, error)
	MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
}

Marshaler provides marshalling an interface value into byte slice.

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(data []byte, v interface{}) error
	UnmarshalWithDisallowUnknownFields(data []byte, v interface{}) error
}

Unmarshaler provides unmarshalling an byte slice into interface value.

Directories

Path Synopsis
Package jsoniter2schema represents the interface codec implementation.
Package jsoniter2schema represents the interface codec implementation.
Package std represents the interface codec implementation.
Package std represents the interface codec implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL