Documentation ¶
Overview ¶
Package plain provides interfaces and helpers for "plain" encoding.
Plain encodings are intended for human readable data.
Package plain provides interfaces and a few supporting functions for a 'plain' encoding.
A 'plain' encoding should serialize data in a plain text way, without being too 'pretty'.
Index ¶
- func DecodeInt64(r io.Reader, p *int64) error
- func DecodeInt64From(r io.Reader) (int64, error)
- func DecodeJoin(r io.Reader, sep string, ds ...Decoder) error
- func DecodeUint64(r io.Reader, p *uint64) error
- func DecodeUint64From(r io.Reader) (uint64, error)
- func EncodeInt64(w io.Writer, v int64) error
- func EncodeJoin(w io.Writer, sep string, es ...Encoder) error
- func EncodeUint64(w io.Writer, v uint64) error
- func Expect(r io.Reader, s string) error
- func Parse(t Decoder, s string) error
- func Put(w io.Writer, s string) error
- func String(t Encoder) string
- func TestRoundTrip(c Coder, verbose bool) error
- func TestRoundTripClobber(c Coder, clob func(Coder), verbose bool) error
- type Coder
- type Decoder
- type Encoder
- type Int
- type Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestRoundTrip ¶ added in v0.0.2
Types ¶
Click to show internal directories.
Click to hide internal directories.