text

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const DataTypeText = "text/plain"

DataTypeText contains plain text codec data type.

Variables

This section is empty.

Functions

func NewDecoder added in v1.1.0

func NewDecoder(r io.Reader) codec.Decoder

func NewEncoder added in v1.1.0

func NewEncoder(w io.Writer) codec.Encoder

Types

type Text

type Text struct{}

Text plain codec.

func (Text) Decoder

func (Text) Decoder(r io.Reader) codec.Decoder

Decoder creates text decoder.

func (Text) Encoder

func (Text) Encoder(w io.Writer) codec.Encoder

Encoder creates text encoder.

func (Text) MimeType

func (Text) MimeType() string

MimeType returns the mime type of the codec.

Jump to

Keyboard shortcuts

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