text

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 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

This section is empty.

Types

type Text

type Text struct{}

Text plain codec.

func (*Text) Decoder

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

Decoder creates text decoder.

func (*Text) Encoder

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

Encoder creates text encoder.

func (*Text) MimeType

func (t *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