codec

package module
v0.0.0-...-1b5f944 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 0 Imported by: 1

README

codec

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

See GoDoc for documentation and examples.

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 Marshaler

type Marshaler interface {
	// Marshal - marshalling an interface value into byte slice.
	Marshal(v interface{}) ([]byte, error)
	// MarshalIndent - marshalling an interface value into byte slice with indent.
	MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
}

Marshaler provides marshalling an interface value into byte slice.

type Unmarshaler

type Unmarshaler interface {
	// Unmarshal - unmarshalling an byte slice into interface value.
	Unmarshal(data []byte, v interface{}) error
	// UnmarshalWithDisallowUnknownFields - unmarshalling an byte slice into interface value with disallow unknown fields.
	UnmarshalWithDisallowUnknownFields(data []byte, v interface{}) error
}

Unmarshaler provides unmarshalling an byte slice into interface value.

Directories

Path Synopsis
Package jsoniter represents the interface codec implementation.
Package jsoniter 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