Categorygithub.com/tiny-go/codec
modulepackage
1.1.0
Repository: https://github.com/tiny-go/codec.git
Documentation: pkg.go.dev

# README

codec

Build Status Report Card GoCover

Package contains a set of tools around data encoders/decoders

Installation

go get -u github.com/tiny-go/codec

Supported codecs

  • JSON (application/json)
  • XML (application/xml)
  • TEXT (text/plain)

# Packages

No description provided by the author

# Interfaces

Codec can create Encoder(s) and Decoder(s) with provided io.Reader/io.Writer.
Decoder is responsible for data decoding.
Encoder is responsible for data encoding.
Registry represents any kind of codec registry, thus it can be global registry or a custom list of codecs that is supposed to be used for a particular case.

# Type aliases

DecoderFunc is a wrapper that allows using regular function as Decoder interface.
EncoderFunc is a wrapper that allows using regular function as Encoder interface.