content

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fmt

func Fmt(format string, a ...interface{}) io.WriterTo

func P

func P(v interface{}) io.WriterTo

func StringWrapper added in v0.11.0

func StringWrapper(prefix, postfix string) func(io.WriterTo) io.WriterTo

Types

type Data

type Data []byte

func (Data) WriteTo

func (d Data) WriteTo(wr io.Writer) (res int64, err error)

type Error

type Error struct {
	Pos int64
	Err error
}

func (Error) Error

func (e Error) Error() string

type Gen

type Gen func(wr io.Writer) (int64, error)

func (Gen) WriteTo

func (f Gen) WriteTo(wr io.Writer) (int64, error)

type Int added in v0.11.0

type Int int64

func (Int) WriteTo added in v0.11.0

func (i Int) WriteTo(wr io.Writer) (int64, error)

type Json

type Json struct {
	V      interface{}
	Indent string
}

func (Json) WriteTo

func (gj Json) WriteTo(wr io.Writer) (int64, error)

type Slice added in v0.11.0

type Slice struct {
	S   []io.WriterTo
	Sep io.WriterTo
}

func (Slice) WriteTo added in v0.11.0

func (slc Slice) WriteTo(w io.Writer) (n int64, err error)

type Str added in v0.9.3

type Str string

func (Str) WriteTo added in v0.9.3

func (s Str) WriteTo(wr io.Writer) (int64, error)

type Uint added in v0.11.0

type Uint uint64

func (Uint) WriteTo added in v0.11.0

func (i Uint) WriteTo(wr io.Writer) (int64, error)

type Wrap added in v0.11.0

type Wrap struct {
	Content         io.WriterTo
	Prefix, Postfix []byte
}

func WrapString added in v0.11.0

func WrapString(prefix string, c io.WriterTo, postfix string) Wrap

func (Wrap) WriteTo added in v0.11.0

func (e Wrap) WriteTo(wr io.Writer) (res int64, err error)

Jump to

Keyboard shortcuts

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