pfmt

package module
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

README

pfmt

Build Status Go Reference

Source files are distributed under the BSD-style license found in the LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formatter added in v0.0.2

func Formatter(v interface{}) fmt.Formatter

Formatter returns formatter.

func Println

func Println(a ...interface{}) (n int, errno error)

Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.

func Sprint

func Sprint(a ...interface{}) string

Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.

Types

type AnyS

type AnyS struct {
	// contains filtered or unexported fields
}

func Anys

func Anys(s []interface{}) AnyS

Anys returns stringer/JSON/text marshaler for the slice of any type.

func (AnyS) MarshalJSON

func (s AnyS) MarshalJSON() ([]byte, error)

func (AnyS) MarshalText

func (s AnyS) MarshalText() ([]byte, error)

func (AnyS) String

func (s AnyS) String() string

type AnyV

type AnyV struct {
	// contains filtered or unexported fields
}

func Any

func Any(v interface{}) AnyV

Any returns stringer/JSON/text marshaler for any type.

func (AnyV) MarshalJSON

func (v AnyV) MarshalJSON() ([]byte, error)

func (AnyV) MarshalText

func (v AnyV) MarshalText() ([]byte, error)

func (AnyV) String

func (v AnyV) String() string

type ArrayV added in v0.1.5

type ArrayV struct {
	// contains filtered or unexported fields
}

func Array added in v0.1.5

func Array(v interface{}) ArrayV

Array returns stringer/JSON/text marshaler for the array type.

func (ArrayV) MarshalJSON added in v0.1.5

func (v ArrayV) MarshalJSON() ([]byte, error)

func (ArrayV) MarshalText added in v0.1.5

func (v ArrayV) MarshalText() ([]byte, error)

func (ArrayV) String added in v0.1.5

func (v ArrayV) String() string

type BoolP added in v0.0.5

type BoolP struct {
	// contains filtered or unexported fields
}

func Boolp

func Boolp(p *bool) BoolP

Boolp returns stringer/JSON/text marshaler for the bool pointer type.

func (BoolP) MarshalJSON added in v0.0.5

func (p BoolP) MarshalJSON() ([]byte, error)

func (BoolP) MarshalText added in v0.0.5

func (p BoolP) MarshalText() ([]byte, error)

func (BoolP) String added in v0.0.5

func (p BoolP) String() string

type BoolPS added in v0.0.5

type BoolPS struct {
	// contains filtered or unexported fields
}

func Boolps

func Boolps(s []*bool) BoolPS

Boolps returns stringer/JSON/text marshaler for slice of bool pointers type.

func (BoolPS) MarshalJSON added in v0.0.5

func (s BoolPS) MarshalJSON() ([]byte, error)

func (BoolPS) MarshalText added in v0.0.5

func (s BoolPS) MarshalText() ([]byte, error)

func (BoolPS) String added in v0.0.5

func (s BoolPS) String() string

type BoolS added in v0.0.5

type BoolS struct {
	// contains filtered or unexported fields
}

func Bools

func Bools(s []bool) BoolS

Bools returns stringer/JSON/text marshaler for the bool slice type.

func (BoolS) MarshalJSON added in v0.0.5

func (s BoolS) MarshalJSON() ([]byte, error)

func (BoolS) MarshalText added in v0.0.5

func (s BoolS) MarshalText() ([]byte, error)

func (BoolS) String added in v0.0.5

func (s BoolS) String() string

type BoolV added in v0.0.5

type BoolV struct {
	// contains filtered or unexported fields
}

func Bool

func Bool(v bool) BoolV

Bool returns stringer/JSON/text marshaler for the bool type.

func (BoolV) MarshalJSON added in v0.0.5

func (v BoolV) MarshalJSON() ([]byte, error)

func (BoolV) MarshalText added in v0.0.5

func (v BoolV) MarshalText() ([]byte, error)

func (BoolV) String added in v0.0.5

func (v BoolV) String() string

type ByteS added in v0.0.5

type ByteS struct {
	// contains filtered or unexported fields
}

func Bytes

func Bytes(s []byte) ByteS

Bytes returns stringer/JSON/text marshaler for slice of bytes type.

func (ByteS) MarshalJSON added in v0.0.5

func (s ByteS) MarshalJSON() ([]byte, error)

func (ByteS) MarshalText added in v0.0.5

func (s ByteS) MarshalText() ([]byte, error)

func (ByteS) String added in v0.0.5

func (s ByteS) String() string

type ByteSP added in v0.0.5

type ByteSP struct {
	// contains filtered or unexported fields
}

func Bytesp

func Bytesp(p *[]byte) ByteSP

Bytesp returns stringer/JSON/text marshaler for the pointer to byte slice type.

func (ByteSP) MarshalJSON added in v0.0.5

func (p ByteSP) MarshalJSON() ([]byte, error)

func (ByteSP) MarshalText added in v0.0.5

func (p ByteSP) MarshalText() ([]byte, error)

func (ByteSP) String added in v0.0.5

func (p ByteSP) String() string

type ByteSPS added in v0.0.5

type ByteSPS struct {
	// contains filtered or unexported fields
}

func Bytesps

func Bytesps(a []*[]byte) ByteSPS

Bytesps returns stringer/JSON/text marshaler for slice of pointers to byte slice type.

func (ByteSPS) MarshalJSON added in v0.0.5

func (a ByteSPS) MarshalJSON() ([]byte, error)

func (ByteSPS) MarshalText added in v0.0.5

func (a ByteSPS) MarshalText() ([]byte, error)

func (ByteSPS) String added in v0.0.5

func (a ByteSPS) String() string

type ByteSS added in v0.0.5

type ByteSS struct {
	// contains filtered or unexported fields
}

func Bytess

func Bytess(s [][]byte) ByteSS

Bytess returns stringer/JSON/text marshaler for the slice of byte slice type.

func (ByteSS) MarshalJSON added in v0.0.5

func (s ByteSS) MarshalJSON() ([]byte, error)

func (ByteSS) MarshalText added in v0.0.5

func (s ByteSS) MarshalText() ([]byte, error)

func (ByteSS) String added in v0.0.5

func (s ByteSS) String() string

type ChanV added in v0.1.5

type ChanV struct {
	// contains filtered or unexported fields
}

func Chan added in v0.1.5

func Chan(v interface{}) ChanV

Chan returns stringer/JSON/text marshaler for the channel.

func (ChanV) MarshalJSON added in v0.1.5

func (v ChanV) MarshalJSON() ([]byte, error)

func (ChanV) MarshalText added in v0.1.5

func (v ChanV) MarshalText() ([]byte, error)

func (ChanV) String added in v0.1.5

func (v ChanV) String() string

type Complex128P added in v0.0.5

type Complex128P struct {
	// contains filtered or unexported fields
}

func Complex128p

func Complex128p(p *complex128) Complex128P

Complex128p returns stringer/JSON/text marshaler for the complex128 pointer type.

func (Complex128P) MarshalJSON added in v0.0.5

func (p Complex128P) MarshalJSON() ([]byte, error)

func (Complex128P) MarshalText added in v0.0.5

func (p Complex128P) MarshalText() ([]byte, error)

func (Complex128P) String added in v0.0.5

func (p Complex128P) String() string

type Complex128PS added in v0.0.5

type Complex128PS struct {
	// contains filtered or unexported fields
}

func Complex128ps

func Complex128ps(a []*complex128) Complex128PS

Complex128ps returns stringer/JSON/text marshaler for the complex128 pointer slice type.

func (Complex128PS) MarshalJSON added in v0.0.5

func (a Complex128PS) MarshalJSON() ([]byte, error)

func (Complex128PS) MarshalText added in v0.0.5

func (a Complex128PS) MarshalText() ([]byte, error)

func (Complex128PS) String added in v0.0.5

func (a Complex128PS) String() string

type Complex128S added in v0.0.5

type Complex128S struct {
	// contains filtered or unexported fields
}

func Complex128s

func Complex128s(s []complex128) Complex128S

Complex128s returns stringer/JSON/text marshaler for the complex128 slice type.

func (Complex128S) MarshalJSON added in v0.0.5

func (s Complex128S) MarshalJSON() ([]byte, error)

func (Complex128S) MarshalText added in v0.0.5

func (s Complex128S) MarshalText() ([]byte, error)

func (Complex128S) String added in v0.0.5

func (s Complex128S) String() string

type Complex128V added in v0.0.5

type Complex128V struct {
	// contains filtered or unexported fields
}

func Complex128

func Complex128(v complex128) Complex128V

Complex128 returns stringer/JSON/text marshaler for the complex128 type.

func (Complex128V) MarshalJSON added in v0.0.5

func (v Complex128V) MarshalJSON() ([]byte, error)

func (Complex128V) MarshalText added in v0.0.5

func (v Complex128V) MarshalText() ([]byte, error)

func (Complex128V) String added in v0.0.5

func (v Complex128V) String() string

type Complex64P added in v0.0.5

type Complex64P struct {
	// contains filtered or unexported fields
}

func Complex64p

func Complex64p(p *complex64) Complex64P

Complex64p returns stringer/JSON/text marshaler for the complex64 pointer type.

func (Complex64P) MarshalJSON added in v0.0.5

func (p Complex64P) MarshalJSON() ([]byte, error)

func (Complex64P) MarshalText added in v0.0.5

func (p Complex64P) MarshalText() ([]byte, error)

func (Complex64P) String added in v0.0.5

func (p Complex64P) String() string

type Complex64PS added in v0.0.5

type Complex64PS struct {
	// contains filtered or unexported fields
}

func Complex64ps

func Complex64ps(s []*complex64) Complex64PS

Complex64ps returns stringer/JSON/text marshaler for the slice of complex64 pointers type.

func (Complex64PS) MarshalJSON added in v0.0.5

func (s Complex64PS) MarshalJSON() ([]byte, error)

func (Complex64PS) MarshalText added in v0.0.5

func (s Complex64PS) MarshalText() ([]byte, error)

func (Complex64PS) String added in v0.0.5

func (s Complex64PS) String() string

type Complex64S added in v0.0.5

type Complex64S struct {
	// contains filtered or unexported fields
}

func Complex64s

func Complex64s(s []complex64) Complex64S

Complex64s returns stringer/JSON/text marshaler for the complex64 type.

func (Complex64S) MarshalJSON added in v0.0.5

func (s Complex64S) MarshalJSON() ([]byte, error)

func (Complex64S) MarshalText added in v0.0.5

func (s Complex64S) MarshalText() ([]byte, error)

func (Complex64S) String added in v0.0.5

func (s Complex64S) String() string

type Complex64V added in v0.0.5

type Complex64V struct {
	// contains filtered or unexported fields
}

func Complex64

func Complex64(v complex64) Complex64V

Complex64 returns stringer/JSON/text marshaler for the complex64 type.

func (Complex64V) MarshalJSON added in v0.0.5

func (v Complex64V) MarshalJSON() ([]byte, error)

func (Complex64V) MarshalText added in v0.0.5

func (v Complex64V) MarshalText() ([]byte, error)

func (Complex64V) String added in v0.0.5

func (v Complex64V) String() string

type DummieV added in v0.1.5

type DummieV struct {
	// contains filtered or unexported fields
}

func Dummie added in v0.1.5

func Dummie(v interface{}) DummieV

Dummie returns stringer/JSON/text marshaler for the dummie type.

func (DummieV) MarshalJSON added in v0.1.5

func (v DummieV) MarshalJSON() ([]byte, error)

func (DummieV) MarshalText added in v0.1.5

func (v DummieV) MarshalText() ([]byte, error)

func (DummieV) String added in v0.1.5

func (v DummieV) String() string

type DurationP added in v0.0.5

type DurationP struct {
	// contains filtered or unexported fields
}

func Durationp

func Durationp(p *time.Duration) DurationP

Durationp returns stringer/JSON/text marshaler for the time duration pointer type.

func (DurationP) MarshalJSON added in v0.0.5

func (p DurationP) MarshalJSON() ([]byte, error)

func (DurationP) MarshalText added in v0.0.5

func (p DurationP) MarshalText() ([]byte, error)

func (DurationP) String added in v0.0.5

func (p DurationP) String() string

type DurationPS added in v0.0.5

type DurationPS struct {
	// contains filtered or unexported fields
}

func Durationps

func Durationps(s []*time.Duration) DurationPS

Durationps returns stringer/JSON/text marshaler for the time duration pointer slice type.

func (DurationPS) MarshalJSON added in v0.0.5

func (s DurationPS) MarshalJSON() ([]byte, error)

func (DurationPS) MarshalText added in v0.0.5

func (s DurationPS) MarshalText() ([]byte, error)

func (DurationPS) String added in v0.0.5

func (s DurationPS) String() string

type DurationS added in v0.0.5

type DurationS struct {
	// contains filtered or unexported fields
}

func Durations

func Durations(s []time.Duration) DurationS

Durations returns stringer/JSON/text marshaler for time duration slice type.

func (DurationS) MarshalJSON added in v0.0.5

func (s DurationS) MarshalJSON() ([]byte, error)

func (DurationS) MarshalText added in v0.0.5

func (s DurationS) MarshalText() ([]byte, error)

func (DurationS) String added in v0.0.5

func (s DurationS) String() string

type DurationV added in v0.0.5

type DurationV struct {
	// contains filtered or unexported fields
}

func Duration

func Duration(v time.Duration) DurationV

Duration returns stringer/JSON/text marshaler for the time duration type.

func (DurationV) MarshalJSON added in v0.0.5

func (v DurationV) MarshalJSON() ([]byte, error)

func (DurationV) MarshalText added in v0.0.5

func (v DurationV) MarshalText() ([]byte, error)

func (DurationV) String added in v0.0.5

func (v DurationV) String() string

type ErrorP added in v0.0.5

type ErrorP struct {
	// contains filtered or unexported fields
}

func Errp added in v0.1.5

func Errp(p *error) ErrorP

Errp returns stringer/JSON/text marshaler for the error pointer type.

func (ErrorP) MarshalJSON added in v0.0.5

func (p ErrorP) MarshalJSON() ([]byte, error)

func (ErrorP) MarshalText added in v0.0.5

func (p ErrorP) MarshalText() ([]byte, error)

func (ErrorP) String added in v0.0.5

func (p ErrorP) String() string

type ErrorPS added in v0.0.5

type ErrorPS struct {
	// contains filtered or unexported fields
}

func Errps added in v0.1.5

func Errps(s []*error) ErrorPS

Errps returns stringer/JSON/text marshaler for the slice of error pointers type.

func (ErrorPS) MarshalJSON added in v0.0.5

func (s ErrorPS) MarshalJSON() ([]byte, error)

func (ErrorPS) MarshalText added in v0.0.5

func (s ErrorPS) MarshalText() ([]byte, error)

func (ErrorPS) String added in v0.0.5

func (s ErrorPS) String() string

type ErrorS added in v0.0.5

type ErrorS struct {
	// contains filtered or unexported fields
}

func Errs added in v0.1.5

func Errs(s []error) ErrorS

Errs returns stringer/JSON/text marshaler for the error slice type.

func (ErrorS) MarshalJSON added in v0.0.5

func (s ErrorS) MarshalJSON() ([]byte, error)

func (ErrorS) MarshalText added in v0.0.5

func (s ErrorS) MarshalText() ([]byte, error)

func (ErrorS) String added in v0.0.5

func (s ErrorS) String() string

type ErrorV added in v0.0.5

type ErrorV struct {
	// contains filtered or unexported fields
}

func Err added in v0.1.5

func Err(v error) ErrorV

Err returns stringer/JSON/text marshaler for the error type.

func (ErrorV) MarshalJSON added in v0.0.5

func (v ErrorV) MarshalJSON() ([]byte, error)

func (ErrorV) MarshalText added in v0.0.5

func (v ErrorV) MarshalText() ([]byte, error)

func (ErrorV) String added in v0.0.5

func (v ErrorV) String() string

type Float32P added in v0.0.5

type Float32P struct {
	// contains filtered or unexported fields
}

func Float32p

func Float32p(p *float32) Float32P

Float32p returns stringer/JSON/text marshaler for the float32 pointer type.

func (Float32P) MarshalJSON added in v0.0.5

func (p Float32P) MarshalJSON() ([]byte, error)

func (Float32P) MarshalText added in v0.0.5

func (p Float32P) MarshalText() ([]byte, error)

func (Float32P) String added in v0.0.5

func (p Float32P) String() string

type Float32PS added in v0.0.5

type Float32PS struct {
	// contains filtered or unexported fields
}

func Float32ps

func Float32ps(a []*float32) Float32PS

Float32ps returns stringer/JSON/text marshaler for the float32 pointer slice type.

func (Float32PS) MarshalJSON added in v0.0.5

func (a Float32PS) MarshalJSON() ([]byte, error)

func (Float32PS) MarshalText added in v0.0.5

func (a Float32PS) MarshalText() ([]byte, error)

func (Float32PS) String added in v0.0.5

func (a Float32PS) String() string

type Float32S added in v0.0.5

type Float32S struct {
	// contains filtered or unexported fields
}

func Float32s

func Float32s(s []float32) Float32S

Float32s returns stringer/JSON/text marshaler for the float32 slice type.

func (Float32S) MarshalJSON added in v0.0.5

func (s Float32S) MarshalJSON() ([]byte, error)

func (Float32S) MarshalText added in v0.0.5

func (s Float32S) MarshalText() ([]byte, error)

func (Float32S) String added in v0.0.5

func (s Float32S) String() string

type Float32V added in v0.1.3

type Float32V struct {
	// contains filtered or unexported fields
}

func Float32

func Float32(v float32) Float32V

Float32 returns stringer/JSON/text marshaler for the float32 type.

func (Float32V) MarshalJSON added in v0.1.3

func (v Float32V) MarshalJSON() ([]byte, error)

func (Float32V) MarshalText added in v0.1.3

func (v Float32V) MarshalText() ([]byte, error)

func (Float32V) String added in v0.1.3

func (v Float32V) String() string

type Float64P added in v0.0.5

type Float64P struct {
	// contains filtered or unexported fields
}

func Float64p

func Float64p(p *float64) Float64P

Float64p returns stringer/JSON/text marshaler for the float64 pointer type.

func (Float64P) MarshalJSON added in v0.0.5

func (p Float64P) MarshalJSON() ([]byte, error)

func (Float64P) MarshalText added in v0.0.5

func (p Float64P) MarshalText() ([]byte, error)

func (Float64P) String added in v0.0.5

func (p Float64P) String() string

type Float64PS added in v0.0.5

type Float64PS struct {
	// contains filtered or unexported fields
}

func Float64ps

func Float64ps(a []*float64) Float64PS

Float64ps returns stringer/JSON/text marshaler for the float64 pointer slice type.

func (Float64PS) MarshalJSON added in v0.0.5

func (a Float64PS) MarshalJSON() ([]byte, error)

func (Float64PS) MarshalText added in v0.0.5

func (a Float64PS) MarshalText() ([]byte, error)

func (Float64PS) String added in v0.0.5

func (a Float64PS) String() string

type Float64S added in v0.0.5

type Float64S struct {
	// contains filtered or unexported fields
}

func Float64s

func Float64s(s []float64) Float64S

Float64s returns stringer/JSON/text marshaler for the float64 slice type.

func (Float64S) MarshalJSON added in v0.0.5

func (s Float64S) MarshalJSON() ([]byte, error)

func (Float64S) MarshalText added in v0.0.5

func (s Float64S) MarshalText() ([]byte, error)

func (Float64S) String added in v0.0.5

func (s Float64S) String() string

type Float64V added in v0.1.3

type Float64V struct {
	// contains filtered or unexported fields
}

func Float64

func Float64(v float64) Float64V

Float64 returns stringer/JSON/text marshaler for the float64 type.

func (Float64V) MarshalJSON added in v0.1.3

func (v Float64V) MarshalJSON() ([]byte, error)

func (Float64V) MarshalText added in v0.1.3

func (v Float64V) MarshalText() ([]byte, error)

func (Float64V) String added in v0.1.3

func (v Float64V) String() string

type Fmt added in v0.0.3

type Fmt struct {
	// contains filtered or unexported fields
}

Formatter implements fmt formatter interface.

func (Fmt) Format added in v0.0.3

func (fm Fmt) Format(f fmt.State, c rune)

Format method controls how State and rune are interpreted, and may call Sprint(f) or Fprint(f) etc. to generate its output.

type FuncV added in v0.1.3

type FuncV struct {
	// contains filtered or unexported fields
}

func Func added in v0.0.2

func Func(v interface{}) FuncV

Func returns stringer/JSON/text marshaler for the function.

func (FuncV) MarshalJSON added in v0.1.3

func (v FuncV) MarshalJSON() ([]byte, error)

func (FuncV) MarshalText added in v0.1.3

func (v FuncV) MarshalText() ([]byte, error)

func (FuncV) String added in v0.1.3

func (v FuncV) String() string

type Int16P added in v0.0.5

type Int16P struct {
	// contains filtered or unexported fields
}

func Int16p

func Int16p(p *int16) Int16P

Int16p returns stringer/JSON/text marshaler for the int16 pointer type.

func (Int16P) MarshalJSON added in v0.0.5

func (p Int16P) MarshalJSON() ([]byte, error)

func (Int16P) MarshalText added in v0.0.5

func (p Int16P) MarshalText() ([]byte, error)

func (Int16P) String added in v0.0.5

func (p Int16P) String() string

type Int16PS added in v0.0.5

type Int16PS struct {
	// contains filtered or unexported fields
}

func Int16ps

func Int16ps(a []*int16) Int16PS

Int16ps returns stringer/JSON/text marshaler for the int16 pointer slice type.

func (Int16PS) MarshalJSON added in v0.0.5

func (a Int16PS) MarshalJSON() ([]byte, error)

func (Int16PS) MarshalText added in v0.0.5

func (a Int16PS) MarshalText() ([]byte, error)

func (Int16PS) String added in v0.0.5

func (a Int16PS) String() string

type Int16S added in v0.0.5

type Int16S struct {
	// contains filtered or unexported fields
}

func Int16s

func Int16s(s []int16) Int16S

Int16s returns stringer/JSON/text marshaler for the int16 slice type.

func (Int16S) MarshalJSON added in v0.0.5

func (s Int16S) MarshalJSON() ([]byte, error)

func (Int16S) MarshalText added in v0.0.5

func (s Int16S) MarshalText() ([]byte, error)

func (Int16S) String added in v0.0.5

func (s Int16S) String() string

type Int16V added in v0.1.3

type Int16V struct {
	// contains filtered or unexported fields
}

func Int16

func Int16(v int16) Int16V

Int16 returns stringer/JSON/text marshaler for the int16 type.

func (Int16V) MarshalJSON added in v0.1.3

func (v Int16V) MarshalJSON() ([]byte, error)

func (Int16V) MarshalText added in v0.1.3

func (v Int16V) MarshalText() ([]byte, error)

func (Int16V) String added in v0.1.3

func (v Int16V) String() string

type Int32P added in v0.0.5

type Int32P struct {
	// contains filtered or unexported fields
}

func Int32p

func Int32p(p *int32) Int32P

Int32p returns stringer/JSON/text marshaler for the int32 pointer type.

func (Int32P) MarshalJSON added in v0.0.5

func (p Int32P) MarshalJSON() ([]byte, error)

func (Int32P) MarshalText added in v0.0.5

func (p Int32P) MarshalText() ([]byte, error)

func (Int32P) String added in v0.0.5

func (p Int32P) String() string

type Int32PS added in v0.0.5

type Int32PS struct {
	// contains filtered or unexported fields
}

func Int32ps

func Int32ps(a []*int32) Int32PS

Int32ps returns stringer/JSON/text marshaler for the int32 pointer slice type.

func (Int32PS) MarshalJSON added in v0.0.5

func (a Int32PS) MarshalJSON() ([]byte, error)

func (Int32PS) MarshalText added in v0.0.5

func (a Int32PS) MarshalText() ([]byte, error)

func (Int32PS) String added in v0.0.5

func (a Int32PS) String() string

type Int32S added in v0.0.5

type Int32S struct {
	// contains filtered or unexported fields
}

func Int32s

func Int32s(s []int32) Int32S

Int32s returns stringer/JSON/text marshaler for the int32 slice type.

func (Int32S) MarshalJSON added in v0.0.5

func (s Int32S) MarshalJSON() ([]byte, error)

func (Int32S) MarshalText added in v0.0.5

func (s Int32S) MarshalText() ([]byte, error)

func (Int32S) String added in v0.0.5

func (s Int32S) String() string

type Int32V added in v0.1.3

type Int32V struct {
	// contains filtered or unexported fields
}

func Int32

func Int32(v int32) Int32V

Int32 returns stringer/JSON/text marshaler for the int32 type.

func (Int32V) MarshalJSON added in v0.1.3

func (v Int32V) MarshalJSON() ([]byte, error)

func (Int32V) MarshalText added in v0.1.3

func (v Int32V) MarshalText() ([]byte, error)

func (Int32V) String added in v0.1.3

func (v Int32V) String() string

type Int64P added in v0.0.5

type Int64P struct {
	// contains filtered or unexported fields
}

func Int64p

func Int64p(p *int64) Int64P

Int64p returns stringer/JSON/text marshaler for the int64 pointer type.

func (Int64P) MarshalJSON added in v0.0.5

func (p Int64P) MarshalJSON() ([]byte, error)

func (Int64P) MarshalText added in v0.0.5

func (p Int64P) MarshalText() ([]byte, error)

func (Int64P) String added in v0.0.5

func (p Int64P) String() string

type Int64PS added in v0.0.5

type Int64PS struct {
	// contains filtered or unexported fields
}

func Int64ps

func Int64ps(a []*int64) Int64PS

Int64ps returns stringer/JSON/text marshaler for the int64 pointer slice type.

func (Int64PS) MarshalJSON added in v0.0.5

func (a Int64PS) MarshalJSON() ([]byte, error)

func (Int64PS) MarshalText added in v0.0.5

func (a Int64PS) MarshalText() ([]byte, error)

func (Int64PS) String added in v0.0.5

func (a Int64PS) String() string

type Int64S added in v0.0.5

type Int64S struct {
	// contains filtered or unexported fields
}

func Int64s

func Int64s(s []int64) Int64S

Int64s returns stringer/JSON/text marshaler for the int64 slice type.

func (Int64S) MarshalJSON added in v0.0.5

func (s Int64S) MarshalJSON() ([]byte, error)

func (Int64S) MarshalText added in v0.0.5

func (s Int64S) MarshalText() ([]byte, error)

func (Int64S) String added in v0.0.5

func (s Int64S) String() string

type Int64V added in v0.1.3

type Int64V struct {
	// contains filtered or unexported fields
}

func Int64

func Int64(v int64) Int64V

Int64 returns stringer/JSON/text marshaler for the int64 type.

func (Int64V) MarshalJSON added in v0.1.3

func (v Int64V) MarshalJSON() ([]byte, error)

func (Int64V) MarshalText added in v0.1.3

func (v Int64V) MarshalText() ([]byte, error)

func (Int64V) String added in v0.1.3

func (v Int64V) String() string

type Int8P added in v0.0.5

type Int8P struct {
	// contains filtered or unexported fields
}

func Int8p

func Int8p(p *int8) Int8P

Int8p returns stringer/JSON/text marshaler for the int8 pointer type.

func (Int8P) MarshalJSON added in v0.0.5

func (p Int8P) MarshalJSON() ([]byte, error)

func (Int8P) MarshalText added in v0.0.5

func (p Int8P) MarshalText() ([]byte, error)

func (Int8P) String added in v0.0.5

func (p Int8P) String() string

type Int8PS added in v0.0.5

type Int8PS struct {
	// contains filtered or unexported fields
}

func Int8ps

func Int8ps(a []*int8) Int8PS

Int8ps returns stringer/JSON/text marshaler for the int8 pointer slice type.

func (Int8PS) MarshalJSON added in v0.0.5

func (a Int8PS) MarshalJSON() ([]byte, error)

func (Int8PS) MarshalText added in v0.0.5

func (a Int8PS) MarshalText() ([]byte, error)

func (Int8PS) String added in v0.0.5

func (a Int8PS) String() string

type Int8S added in v0.0.5

type Int8S struct {
	// contains filtered or unexported fields
}

func Int8s

func Int8s(s []int8) Int8S

Int8s returns stringer/JSON/text marshaler for the int8 slice type.

func (Int8S) MarshalJSON added in v0.0.5

func (s Int8S) MarshalJSON() ([]byte, error)

func (Int8S) MarshalText added in v0.0.5

func (s Int8S) MarshalText() ([]byte, error)

func (Int8S) String added in v0.0.5

func (s Int8S) String() string

type Int8V added in v0.1.3

type Int8V struct {
	// contains filtered or unexported fields
}

func Int8

func Int8(v int8) Int8V

Int8 returns stringer/JSON/text marshaler for the int8 type.

func (Int8V) MarshalJSON added in v0.1.3

func (v Int8V) MarshalJSON() ([]byte, error)

func (Int8V) MarshalText added in v0.1.3

func (v Int8V) MarshalText() ([]byte, error)

func (Int8V) String added in v0.1.3

func (v Int8V) String() string

type IntP added in v0.0.5

type IntP struct {
	// contains filtered or unexported fields
}

func Intp

func Intp(p *int) IntP

Intp returns stringer/JSON/text marshaler for the int pointer type.

func (IntP) MarshalJSON added in v0.0.5

func (p IntP) MarshalJSON() ([]byte, error)

func (IntP) MarshalText added in v0.0.5

func (p IntP) MarshalText() ([]byte, error)

func (IntP) String added in v0.0.5

func (p IntP) String() string

type IntPS added in v0.0.5

type IntPS struct {
	// contains filtered or unexported fields
}

func Intps

func Intps(a []*int) IntPS

Intps returns stringer/JSON/text marshaler for the int pointer slice type.

func (IntPS) MarshalJSON added in v0.0.5

func (a IntPS) MarshalJSON() ([]byte, error)

func (IntPS) MarshalText added in v0.0.5

func (a IntPS) MarshalText() ([]byte, error)

func (IntPS) String added in v0.0.5

func (a IntPS) String() string

type IntS added in v0.0.5

type IntS struct {
	// contains filtered or unexported fields
}

func Ints

func Ints(s []int) IntS

Ints returns stringer/JSON/text marshaler for the int slice type.

func (IntS) MarshalJSON added in v0.0.5

func (s IntS) MarshalJSON() ([]byte, error)

func (IntS) MarshalText added in v0.0.5

func (s IntS) MarshalText() ([]byte, error)

func (IntS) String added in v0.0.5

func (s IntS) String() string

type IntV added in v0.1.3

type IntV struct {
	// contains filtered or unexported fields
}

func Int

func Int(v int) IntV

Int returns stringer/JSON/text marshaler for the int type.

func (IntV) MarshalJSON added in v0.1.3

func (v IntV) MarshalJSON() ([]byte, error)

func (IntV) MarshalText added in v0.1.3

func (v IntV) MarshalText() ([]byte, error)

func (IntV) String added in v0.1.3

func (v IntV) String() string

type InterfaceV added in v0.1.5

type InterfaceV struct {
	// contains filtered or unexported fields
}

func Interface added in v0.1.5

func Interface(v interface{}) InterfaceV

Interface returns stringer/JSON/text marshaler for the interface.

func (InterfaceV) MarshalJSON added in v0.1.5

func (v InterfaceV) MarshalJSON() ([]byte, error)

func (InterfaceV) MarshalText added in v0.1.5

func (v InterfaceV) MarshalText() ([]byte, error)

func (InterfaceV) String added in v0.1.5

func (v InterfaceV) String() string

type JSONMarshalerS added in v0.0.5

type JSONMarshalerS struct {
	// contains filtered or unexported fields
}

func JSONMarshalers

func JSONMarshalers(s []json.Marshaler) JSONMarshalerS

JSONMarshalers returns stringer/JSON/text marshaler for the JSON marshaler slice type.

func (JSONMarshalerS) MarshalJSON added in v0.0.5

func (s JSONMarshalerS) MarshalJSON() ([]byte, error)

func (JSONMarshalerS) MarshalText added in v0.0.5

func (s JSONMarshalerS) MarshalText() ([]byte, error)

func (JSONMarshalerS) String added in v0.0.5

func (s JSONMarshalerS) String() string

type JSONV added in v0.0.5

type JSONV struct {
	// contains filtered or unexported fields
}

func JSON added in v0.0.2

func JSON(s []KV) JSONV

JSON returns stringer/JSON/text marshaler for the KV slice type.

func (JSONV) MarshalJSON added in v0.0.5

func (s JSONV) MarshalJSON() ([]byte, error)

func (JSONV) MarshalText added in v0.0.5

func (s JSONV) MarshalText() ([]byte, error)

func (JSONV) String added in v0.0.5

func (s JSONV) String() string

type KV added in v0.0.2

type KV interface {
	encoding.TextMarshaler
	json.Marshaler
}

KV is a key-value pair.

type KVFuncV added in v0.1.5

type KVFuncV struct {
	// contains filtered or unexported fields
}

func KVFunc added in v0.1.5

func KVFunc(v func() KV) KVFuncV

KVFunc returns stringer/JSON/text marshaler for the custom function type.

func (KVFuncV) MarshalJSON added in v0.1.5

func (v KVFuncV) MarshalJSON() ([]byte, error)

func (KVFuncV) MarshalText added in v0.1.5

func (v KVFuncV) MarshalText() ([]byte, error)

func (KVFuncV) String added in v0.1.5

func (v KVFuncV) String() string

type MapV added in v0.1.5

type MapV struct {
	// contains filtered or unexported fields
}

func Map added in v0.1.5

func Map(v interface{}) MapV

Map returns stringer/JSON/text marshaler for the map.

func (MapV) MarshalJSON added in v0.1.5

func (v MapV) MarshalJSON() ([]byte, error)

func (MapV) MarshalText added in v0.1.5

func (v MapV) MarshalText() ([]byte, error)

func (MapV) String added in v0.1.5

func (v MapV) String() string

type Option added in v0.1.5

type Option func(*Pretty)

Option changes prettier configuration.

func WithEmpty added in v0.1.5

func WithEmpty(empty string) Option

WithEmpty sets empty.

func WithFalse added in v0.1.5

func WithFalse(f string) Option

WithFalse sets false.

func WithNil added in v0.1.5

func WithNil(null string) Option

WithNil sets nil.

func WithSeparator added in v0.1.5

func WithSeparator(separator string) Option

WithSeparator sets separator.

func WithStackDepth added in v0.1.5

func WithStackDepth(depth int) Option

WithStackDepth sets stack depth.

func WithTrue added in v0.1.5

func WithTrue(t string) Option

WithTrue sets true.

type Prettier added in v0.1.5

type Prettier interface {
	fmt.Stringer
	KV
}

Prettier.

func Reflect

func Reflect(v interface{}) Prettier

Reflect returns stringer/JSON/text marshaler uses reflection.

type Pretty added in v0.1.5

type Pretty struct {
	// contains filtered or unexported fields
}

Pretty.

func New added in v0.1.5

func New(opts ...Option) Pretty

func (Pretty) Any added in v0.1.5

func (pretty Pretty) Any(v interface{}) AnyV

Any returns stringer/JSON/text marshaler for any type.

func (Pretty) Anys added in v0.1.5

func (pretty Pretty) Anys(s []interface{}) AnyS

Anys returns stringer/JSON/text marshaler for the slice of any type.

func (Pretty) Array added in v0.1.5

func (pretty Pretty) Array(v interface{}) ArrayV

Array returns stringer/JSON/text marshaler for the array type.

func (Pretty) Bool added in v0.1.5

func (pretty Pretty) Bool(v bool) BoolV

Bool returns stringer/JSON/text marshaler for the bool type.

func (Pretty) Boolp added in v0.1.5

func (pretty Pretty) Boolp(p *bool) BoolP

Boolp returns stringer/JSON/text marshaler for the bool pointer type.

func (Pretty) Boolps added in v0.1.5

func (pretty Pretty) Boolps(s []*bool) BoolPS

Boolps returns stringer/JSON/text marshaler for slice of bool pointers type.

func (Pretty) Bytes added in v0.1.5

func (pretty Pretty) Bytes(s []byte) ByteS

Bytes returns stringer/JSON/text marshaler for slice of bytes type.

func (Pretty) Bytesp added in v0.1.5

func (pretty Pretty) Bytesp(p *[]byte) ByteSP

Bytesp returns stringer/JSON/text marshaler for the pointer to byte slice type.

func (Pretty) Bytesps added in v0.1.5

func (pretty Pretty) Bytesps(a []*[]byte) ByteSPS

Bytesps returns stringer/JSON/text marshaler for slice of pointers to byte slice type.

func (Pretty) Bytess added in v0.1.5

func (pretty Pretty) Bytess(s [][]byte) ByteSS

Bytess returns stringer/JSON/text marshaler for the slice of byte slice type.

func (Pretty) Chan added in v0.1.5

func (pretty Pretty) Chan(v interface{}) ChanV

Chan returns stringer/JSON/text marshaler for the channel.

func (Pretty) Complex128 added in v0.1.5

func (pretty Pretty) Complex128(v complex128) Complex128V

Complex128 returns stringer/JSON/text marshaler for the complex128 type.

func (Pretty) Complex128p added in v0.1.5

func (pretty Pretty) Complex128p(p *complex128) Complex128P

Complex128p returns stringer/JSON/text marshaler for the complex128 pointer type.

func (Pretty) Complex128ps added in v0.1.5

func (pretty Pretty) Complex128ps(a []*complex128) Complex128PS

Complex128ps returns stringer/JSON/text marshaler for the complex128 pointer slice type.

func (Pretty) Complex128s added in v0.1.5

func (pretty Pretty) Complex128s(s []complex128) Complex128S

Complex128s returns stringer/JSON/text marshaler for the complex128 slice type.

func (Pretty) Complex64 added in v0.1.5

func (pretty Pretty) Complex64(v complex64) Complex64V

Complex64 returns stringer/JSON/text marshaler for the complex64 type.

func (Pretty) Complex64p added in v0.1.5

func (pretty Pretty) Complex64p(p *complex64) Complex64P

Complex64p returns stringer/JSON/text marshaler for the complex64 pointer type.

func (Pretty) Complex64ps added in v0.1.5

func (pretty Pretty) Complex64ps(s []*complex64) Complex64PS

Complex64ps returns stringer/JSON/text marshaler for the slice of complex64 pointers type.

func (Pretty) Complex64s added in v0.1.5

func (pretty Pretty) Complex64s(s []complex64) Complex64S

Complex64s returns stringer/JSON/text marshaler for the complex64 type.

func (Pretty) Dummie added in v0.1.5

func (pretty Pretty) Dummie(v interface{}) DummieV

Dummie returns stringer/JSON/text marshaler for the dummie type.

func (Pretty) Duration added in v0.1.5

func (Pretty) Duration(v time.Duration) DurationV

Duration returns stringer/JSON/text marshaler for the time duration type.

func (Pretty) Durationp added in v0.1.5

func (pretty Pretty) Durationp(p *time.Duration) DurationP

Durationp returns stringer/JSON/text marshaler for the time duration pointer type.

func (Pretty) Durationps added in v0.1.5

func (pretty Pretty) Durationps(s []*time.Duration) DurationPS

Durationps returns stringer/JSON/text marshaler for the time duration pointer slice type.

func (Pretty) Durations added in v0.1.5

func (pretty Pretty) Durations(s []time.Duration) DurationS

Durations returns stringer/JSON/text marshaler for time duration slice type.

func (Pretty) Err added in v0.1.5

func (pretty Pretty) Err(v error) ErrorV

Error returns stringer/JSON/text marshaler for the error type.

func (Pretty) Errp added in v0.1.5

func (pretty Pretty) Errp(p *error) ErrorP

Errp returns stringer/JSON/text marshaler for the error pointer type.

func (Pretty) Errps added in v0.1.5

func (pretty Pretty) Errps(s []*error) ErrorPS

Errorps returns stringer/JSON/text marshaler for the slice of error pointers type.

func (Pretty) Errs added in v0.1.5

func (pretty Pretty) Errs(s []error) ErrorS

Errors returns stringer/JSON/text marshaler for the error slice type.

func (Pretty) Float32 added in v0.1.5

func (Pretty) Float32(v float32) Float32V

Float32 returns stringer/JSON/text marshaler for the float32 type.

func (Pretty) Float32p added in v0.1.5

func (pretty Pretty) Float32p(p *float32) Float32P

Float32p returns stringer/JSON/text marshaler for the float32 pointer type.

func (Pretty) Float32ps added in v0.1.5

func (pretty Pretty) Float32ps(a []*float32) Float32PS

Float32ps returns stringer/JSON/text marshaler for the float32 pointer slice type.

func (Pretty) Float32s added in v0.1.5

func (pretty Pretty) Float32s(s []float32) Float32S

Float32s returns stringer/JSON/text marshaler for the float32 slice type.

func (Pretty) Float64 added in v0.1.5

func (Pretty) Float64(v float64) Float64V

Float64 returns stringer/JSON/text marshaler for the float64 type.

func (Pretty) Float64p added in v0.1.5

func (pretty Pretty) Float64p(p *float64) Float64P

Float64p returns stringer/JSON/text marshaler for the float64 pointer type.

func (Pretty) Float64ps added in v0.1.5

func (pretty Pretty) Float64ps(a []*float64) Float64PS

Float64ps returns stringer/JSON/text marshaler for the float64 pointer slice type.

func (Pretty) Float64s added in v0.1.5

func (pretty Pretty) Float64s(s []float64) Float64S

Float64s returns stringer/JSON/text marshaler for the float64 slice type.

func (Pretty) Func added in v0.1.5

func (pretty Pretty) Func(v interface{}) FuncV

Func returns stringer/JSON/text marshaler for the function.

func (Pretty) Int added in v0.1.5

func (Pretty) Int(v int) IntV

Int returns stringer/JSON/text marshaler for the int type.

func (Pretty) Int16 added in v0.1.5

func (Pretty) Int16(v int16) Int16V

Int16 returns stringer/JSON/text marshaler for the int16 type.

func (Pretty) Int16p added in v0.1.5

func (pretty Pretty) Int16p(p *int16) Int16P

Int16p returns stringer/JSON/text marshaler for the int16 pointer type.

func (Pretty) Int16ps added in v0.1.5

func (pretty Pretty) Int16ps(a []*int16) Int16PS

Int16ps returns stringer/JSON/text marshaler for the int16 pointer slice type.

func (Pretty) Int16s added in v0.1.5

func (pretty Pretty) Int16s(s []int16) Int16S

Int16s returns stringer/JSON/text marshaler for the int16 slice type.

func (Pretty) Int32 added in v0.1.5

func (Pretty) Int32(v int32) Int32V

Int32 returns stringer/JSON/text marshaler for the int32 type.

func (Pretty) Int32p added in v0.1.5

func (pretty Pretty) Int32p(p *int32) Int32P

Int32p returns stringer/JSON/text marshaler for the int32 pointer type.

func (Pretty) Int32ps added in v0.1.5

func (pretty Pretty) Int32ps(a []*int32) Int32PS

Int32ps returns stringer/JSON/text marshaler for the int32 pointer slice type.

func (Pretty) Int32s added in v0.1.5

func (pretty Pretty) Int32s(s []int32) Int32S

Int32s returns stringer/JSON/text marshaler for the int32 slice type.

func (Pretty) Int64 added in v0.1.5

func (Pretty) Int64(v int64) Int64V

Int64 returns stringer/JSON/text marshaler for the int64 type.

func (Pretty) Int64p added in v0.1.5

func (pretty Pretty) Int64p(p *int64) Int64P

Int64p returns stringer/JSON/text marshaler for the int64 pointer type.

func (Pretty) Int64ps added in v0.1.5

func (pretty Pretty) Int64ps(a []*int64) Int64PS

Int64ps returns stringer/JSON/text marshaler for the int64 pointer slice type.

func (Pretty) Int64s added in v0.1.5

func (pretty Pretty) Int64s(s []int64) Int64S

Int64s returns stringer/JSON/text marshaler for the int64 slice type.

func (Pretty) Int8 added in v0.1.5

func (Pretty) Int8(v int8) Int8V

Int8 returns stringer/JSON/text marshaler for the int8 type.

func (Pretty) Int8p added in v0.1.5

func (pretty Pretty) Int8p(p *int8) Int8P

Int8p returns stringer/JSON/text marshaler for the int8 pointer type.

func (Pretty) Int8ps added in v0.1.5

func (pretty Pretty) Int8ps(a []*int8) Int8PS

Int8ps returns stringer/JSON/text marshaler for the int8 pointer slice type.

func (Pretty) Int8s added in v0.1.5

func (pretty Pretty) Int8s(s []int8) Int8S

Int8s returns stringer/JSON/text marshaler for the int8 slice type.

func (Pretty) Interface added in v0.1.5

func (pretty Pretty) Interface(v interface{}) InterfaceV

Interface returns stringer/JSON/text marshaler for the interface.

func (Pretty) Intp added in v0.1.5

func (pretty Pretty) Intp(p *int) IntP

Intp returns stringer/JSON/text marshaler for the int pointer type.

func (Pretty) Intps added in v0.1.5

func (pretty Pretty) Intps(a []*int) IntPS

Intps returns stringer/JSON/text marshaler for the int pointer slice type.

func (Pretty) Ints added in v0.1.5

func (pretty Pretty) Ints(s []int) IntS

Ints returns stringer/JSON/text marshaler for the int slice type.

func (Pretty) JSON added in v0.1.8

func (pretty Pretty) JSON(s []KV) JSONV

JSON returns stringer/JSON/text marshaler for the KV slice type.

func (Pretty) JSONMarshalers added in v0.1.5

func (pretty Pretty) JSONMarshalers(s []json.Marshaler) JSONMarshalerS

JSONMarshalers returns stringer/JSON/text marshaler for the JSON marshaler slice type.

func (Pretty) KVFunc added in v0.1.5

func (pretty Pretty) KVFunc(v func() KV) KVFuncV

KVFunc returns stringer/JSON/text marshaler for the custom function type.

func (Pretty) Map added in v0.1.5

func (pretty Pretty) Map(v interface{}) MapV

Map returns stringer/JSON/text marshaler for the map.

func (Pretty) Raw added in v0.1.5

func (pretty Pretty) Raw(v []byte) RawV

Raw returns stringer/JSON/text marshaler for the raw byte slice.

func (Pretty) Rawp added in v0.1.5

func (pretty Pretty) Rawp(p *[]byte) RawP

Rawp returns stringer/JSON/text marshaler for the raw byte slice pointer.

func (Pretty) Rawps added in v0.1.5

func (pretty Pretty) Rawps(s []*[]byte) RawPS

Rawps returns stringer/JSON/text marshaler for the slice of byte slice pointers type.

func (Pretty) Raws added in v0.1.5

func (pretty Pretty) Raws(s [][]byte) RawS

Raws returns stringer/JSON/text marshaler for the slice of byte slice type.

func (Pretty) Reflect added in v0.1.5

func (pretty Pretty) Reflect(v interface{}) Prettier

Reflect returns stringer/JSON/text marshaler uses reflection.

func (Pretty) Reflects added in v0.1.5

func (pretty Pretty) Reflects(s []interface{}) ReflectS

Reflects returns stringer/JSON/text marshaler uses reflection for the slice of some type.

func (Pretty) Runes added in v0.1.5

func (pretty Pretty) Runes(s []rune) RuneS

Runes returns stringer/JSON/text marshaler for the rune slice type.

func (Pretty) Runesp added in v0.1.5

func (pretty Pretty) Runesp(p *[]rune) RuneSP

Runesp returns stringer/JSON/text marshaler for the rune pointer slice type.

func (Pretty) Runesps added in v0.1.5

func (pretty Pretty) Runesps(a []*[]rune) RuneSPS

Runesps returns stringer/JSON/text marshaler for slice of pointers to rune slice type.

func (Pretty) Slice added in v0.1.5

func (pretty Pretty) Slice(v interface{}) SliceV

Slice returns stringer/JSON/text marshaler for the slice type.

func (Pretty) String added in v0.1.5

func (pretty Pretty) String(v string) StringV

String returns stringer/JSON/text marshaler for the string type.

func (Pretty) Stringp added in v0.1.5

func (pretty Pretty) Stringp(p *string) StringP

Stringp returns stringer/JSON/text marshaler for the string pointer type.

func (Pretty) Stringps added in v0.1.5

func (pretty Pretty) Stringps(a []*string) StringPS

Stringps returns stringer/JSON/text marshaler for the string pointer slice type.

func (Pretty) Strings added in v0.1.5

func (pretty Pretty) Strings(s []string) StringS

Strings returns stringer/JSON/text marshaler for the string slice type.

func (Pretty) Struct added in v0.1.5

func (pretty Pretty) Struct(v interface{}) StructV

Struct returns stringer/JSON/text marshaler for the struct type.

func (Pretty) Text added in v0.1.5

func (pretty Pretty) Text(v encoding.TextMarshaler) TextV

Text returns stringer/JSON/text marshaler for the encoding.TextMarshaler type.

func (Pretty) Texts added in v0.1.5

func (pretty Pretty) Texts(s []encoding.TextMarshaler) TextS

Texts returns stringer/JSON/text marshaler for the text marshaler slice type.

func (Pretty) Time added in v0.1.5

func (pretty Pretty) Time(v time.Time) TimeV

Time returns stringer/JSON/text marshaler for the time type.

func (Pretty) Timep added in v0.1.5

func (pretty Pretty) Timep(p *time.Time) TimeP

Timep returns stringer/JSON/text marshaler for the time pointer type.

func (Pretty) Timeps added in v0.1.5

func (pretty Pretty) Timeps(a []*time.Time) TimePS

Timeps returns stringer/JSON/text marshaler for the time pointer slice type.

func (Pretty) Times added in v0.1.5

func (pretty Pretty) Times(s []time.Time) TimeS

Times returns stringer/JSON/text marshaler for the slice of byte slice type.

func (Pretty) Uint added in v0.1.5

func (pretty Pretty) Uint(v uint) UintV

Uint returns stringer/JSON/text marshaler for the uint type.

func (Pretty) Uint16 added in v0.1.5

func (Pretty) Uint16(v uint16) Uint16V

Uint16 returns stringer/JSON/text marshaler for the uint16 type.

func (Pretty) Uint16p added in v0.1.5

func (pretty Pretty) Uint16p(p *uint16) Uint16P

Uint16p returns stringer/JSON/text marshaler for the uint16 pointer type.

func (Pretty) Uint16ps added in v0.1.5

func (pretty Pretty) Uint16ps(a []*uint16) Uint16PS

Uint16ps returns stringer/JSON/text marshaler for the uint16 pointer slice type.

func (Pretty) Uint16s added in v0.1.5

func (pretty Pretty) Uint16s(s []uint16) Uint16S

Uint16s returns stringer/JSON/text marshaler for the uint16 slice type.

func (Pretty) Uint32 added in v0.1.5

func (Pretty) Uint32(v uint32) Uint32V

Uint32 returns stringer/JSON/text marshaler for the uint32 type.

func (Pretty) Uint32p added in v0.1.5

func (pretty Pretty) Uint32p(p *uint32) Uint32P

Uint32p returns stringer/JSON/text marshaler for the uint32 pointer type.

func (Pretty) Uint32ps added in v0.1.5

func (pretty Pretty) Uint32ps(a []*uint32) Uint32PS

Uint32ps returns stringer/JSON/text marshaler for the uint32 pointer slice type.

func (Pretty) Uint32s added in v0.1.5

func (pretty Pretty) Uint32s(s []uint32) Uint32S

Uint32s returns stringer/JSON/text marshaler for the uint32 slice type.

func (Pretty) Uint64 added in v0.1.5

func (Pretty) Uint64(v uint64) Uint64V

Uint64 returns stringer/JSON/text marshaler for the uint64 type.

func (Pretty) Uint64p added in v0.1.5

func (pretty Pretty) Uint64p(p *uint64) Uint64P

Uint64p returns stringer/JSON/text marshaler for the uint64 pointer type.

func (Pretty) Uint64ps added in v0.1.5

func (pretty Pretty) Uint64ps(a []*uint64) Uint64PS

Uint64ps returns stringer/JSON/text marshaler for the uint64 pointer slice type.

func (Pretty) Uint64s added in v0.1.5

func (pretty Pretty) Uint64s(s []uint64) Uint64S

Uint64s returns stringer/JSON/text marshaler for the uint64 slice type.

func (Pretty) Uint8 added in v0.1.5

func (Pretty) Uint8(v uint8) Uint8V

Uint8 returns stringer/JSON/text marshaler for the uint8 type.

func (Pretty) Uint8p added in v0.1.5

func (pretty Pretty) Uint8p(p *uint8) Uint8P

Uint8p returns stringer/JSON/text marshaler for the uint8 pointer type.

func (Pretty) Uint8ps added in v0.1.5

func (pretty Pretty) Uint8ps(a []*uint8) Uint8PS

Uint8ps returns stringer/JSON/text marshaler for the uint8 pointer slice type.

func (Pretty) Uint8s added in v0.1.5

func (pretty Pretty) Uint8s(s []uint8) Uint8S

Uint8s returns stringer/JSON/text marshaler for the uint8 slice type.

func (Pretty) Uintp added in v0.1.5

func (pretty Pretty) Uintp(p *uint) UintP

Uintp returns stringer/JSON/text marshaler for the uint pointer type.

func (Pretty) Uintps added in v0.1.5

func (pretty Pretty) Uintps(a []*uint) UintPS

Uintps returns stringer/JSON/text marshaler for the uint pointer slice type.

func (Pretty) Uintptr added in v0.1.5

func (pretty Pretty) Uintptr(v uintptr) UintptrV

Uintptr returns stringer/JSON/text marshaler for the uintptr type.

func (Pretty) Uintptrp added in v0.1.5

func (pretty Pretty) Uintptrp(p *uintptr) UintptrP

Uintptrp returns stringer/JSON/text marshaler for the uintptr pointer type.

func (Pretty) Uintptrps added in v0.1.5

func (pretty Pretty) Uintptrps(a []*uintptr) UintptrPS

Uintptrps returns stringer/JSON/text marshaler for the slice of a pointer to a uintptr type.

func (Pretty) Uintptrs added in v0.1.5

func (pretty Pretty) Uintptrs(s []uintptr) UintptrS

Uintptrs returns stringer/JSON/text marshaler for the uintptr slice type.

func (Pretty) Uints added in v0.1.5

func (pretty Pretty) Uints(s []uint) UintS

Uints returns stringer/JSON/text marshaler for the uint slice type.

type RawP added in v0.0.5

type RawP struct {
	// contains filtered or unexported fields
}

func Rawp

func Rawp(p *[]byte) RawP

Rawp returns stringer/JSON/text marshaler for the raw byte slice pointer.

func (RawP) MarshalJSON added in v0.0.5

func (p RawP) MarshalJSON() ([]byte, error)

func (RawP) MarshalText added in v0.0.5

func (p RawP) MarshalText() ([]byte, error)

func (RawP) String added in v0.0.5

func (p RawP) String() string

type RawPS added in v0.0.5

type RawPS struct {
	// contains filtered or unexported fields
}

func Rawps

func Rawps(s []*[]byte) RawPS

Rawps returns stringer/JSON/text marshaler for the slice of byte slice pointers type.

func (RawPS) MarshalJSON added in v0.0.5

func (s RawPS) MarshalJSON() ([]byte, error)

func (RawPS) MarshalText added in v0.0.5

func (s RawPS) MarshalText() ([]byte, error)

func (RawPS) String added in v0.0.5

func (s RawPS) String() string

type RawS added in v0.0.5

type RawS struct {
	// contains filtered or unexported fields
}

func Raws

func Raws(s [][]byte) RawS

Raws returns stringer/JSON/text marshaler for the slice of byte slice type.

func (RawS) MarshalJSON added in v0.0.5

func (s RawS) MarshalJSON() ([]byte, error)

func (RawS) MarshalText added in v0.0.5

func (s RawS) MarshalText() ([]byte, error)

func (RawS) String added in v0.0.5

func (s RawS) String() string

type RawV added in v0.1.3

type RawV struct {
	// contains filtered or unexported fields
}

func Raw

func Raw(v []byte) RawV

Raw returns stringer/JSON/text marshaler for the raw byte slice.

func (RawV) MarshalJSON added in v0.1.3

func (v RawV) MarshalJSON() ([]byte, error)

func (RawV) MarshalText added in v0.1.3

func (v RawV) MarshalText() ([]byte, error)

func (RawV) String added in v0.1.3

func (v RawV) String() string

type ReflectS added in v0.0.5

type ReflectS struct {
	// contains filtered or unexported fields
}

func Reflects

func Reflects(s []interface{}) ReflectS

Reflects returns stringer/JSON/text marshaler uses reflection for the slice of some type.

func (ReflectS) MarshalJSON added in v0.0.5

func (s ReflectS) MarshalJSON() ([]byte, error)

func (ReflectS) MarshalText added in v0.0.5

func (s ReflectS) MarshalText() ([]byte, error)

func (ReflectS) String added in v0.0.5

func (s ReflectS) String() string

type ReflectV added in v0.1.2

type ReflectV struct {
	// contains filtered or unexported fields
}

func (ReflectV) MarshalJSON added in v0.1.2

func (v ReflectV) MarshalJSON() ([]byte, error)

func (ReflectV) MarshalText added in v0.1.2

func (v ReflectV) MarshalText() ([]byte, error)

func (ReflectV) String added in v0.1.2

func (v ReflectV) String() string

type RuneS added in v0.0.5

type RuneS struct {
	// contains filtered or unexported fields
}

func Runes

func Runes(s []rune) RuneS

Runes returns stringer/JSON/text marshaler for the rune slice type.

func (RuneS) MarshalJSON added in v0.0.5

func (s RuneS) MarshalJSON() ([]byte, error)

func (RuneS) MarshalText added in v0.0.5

func (s RuneS) MarshalText() ([]byte, error)

func (RuneS) String added in v0.0.5

func (s RuneS) String() string

type RuneSP added in v0.0.5

type RuneSP struct {
	// contains filtered or unexported fields
}

func Runesp

func Runesp(p *[]rune) RuneSP

Runesp returns stringer/JSON/text marshaler for the rune pointer slice type.

func (RuneSP) MarshalJSON added in v0.0.5

func (p RuneSP) MarshalJSON() ([]byte, error)

func (RuneSP) MarshalText added in v0.0.5

func (p RuneSP) MarshalText() ([]byte, error)

func (RuneSP) String added in v0.0.5

func (p RuneSP) String() string

type RuneSPS added in v0.0.5

type RuneSPS struct {
	// contains filtered or unexported fields
}

func Runesps

func Runesps(a []*[]rune) RuneSPS

Runesps returns stringer/JSON/text marshaler for slice of pointers to rune slice type.

func (RuneSPS) MarshalJSON added in v0.0.5

func (a RuneSPS) MarshalJSON() ([]byte, error)

func (RuneSPS) MarshalText added in v0.0.5

func (a RuneSPS) MarshalText() ([]byte, error)

func (RuneSPS) String added in v0.0.5

func (a RuneSPS) String() string

type SliceV added in v0.1.5

type SliceV struct {
	// contains filtered or unexported fields
}

func Slice added in v0.1.5

func Slice(v interface{}) SliceV

Slice returns stringer/JSON/text marshaler for the slice type.

func (SliceV) MarshalJSON added in v0.1.5

func (v SliceV) MarshalJSON() ([]byte, error)

func (SliceV) MarshalText added in v0.1.5

func (v SliceV) MarshalText() ([]byte, error)

func (SliceV) String added in v0.1.5

func (v SliceV) String() string

type StringP added in v0.0.5

type StringP struct {
	// contains filtered or unexported fields
}

func Stringp

func Stringp(p *string) StringP

Stringp returns stringer/JSON/text marshaler for the string pointer type.

func (StringP) MarshalJSON added in v0.0.5

func (p StringP) MarshalJSON() ([]byte, error)

func (StringP) MarshalText added in v0.0.5

func (p StringP) MarshalText() ([]byte, error)

func (StringP) String added in v0.0.5

func (p StringP) String() string

type StringPS added in v0.0.5

type StringPS struct {
	// contains filtered or unexported fields
}

func Stringps

func Stringps(a []*string) StringPS

Stringps returns stringer/JSON/text marshaler for the string pointer slice type.

func (StringPS) MarshalJSON added in v0.0.5

func (a StringPS) MarshalJSON() ([]byte, error)

func (StringPS) MarshalText added in v0.0.5

func (a StringPS) MarshalText() ([]byte, error)

func (StringPS) String added in v0.0.5

func (a StringPS) String() string

type StringS added in v0.0.5

type StringS struct {
	// contains filtered or unexported fields
}

func Strings

func Strings(s []string) StringS

Strings returns stringer/JSON/text marshaler for the string slice type.

func (StringS) MarshalJSON added in v0.0.5

func (s StringS) MarshalJSON() ([]byte, error)

func (StringS) MarshalText added in v0.0.5

func (s StringS) MarshalText() ([]byte, error)

func (StringS) String added in v0.0.5

func (s StringS) String() string

type StringV added in v0.1.3

type StringV struct {
	// contains filtered or unexported fields
}

func String

func String(v string) StringV

String returns stringer/JSON/text marshaler for the string type.

func (StringV) MarshalJSON added in v0.1.3

func (v StringV) MarshalJSON() ([]byte, error)

func (StringV) MarshalText added in v0.1.3

func (v StringV) MarshalText() ([]byte, error)

func (StringV) String added in v0.1.3

func (v StringV) String() string

type StructV added in v0.1.5

type StructV struct {
	// contains filtered or unexported fields
}

func Struct added in v0.1.5

func Struct(v interface{}) StructV

Struct returns stringer/JSON/text marshaler for the struct type.

func (StructV) MarshalJSON added in v0.1.5

func (v StructV) MarshalJSON() ([]byte, error)

func (StructV) MarshalText added in v0.1.5

func (v StructV) MarshalText() ([]byte, error)

func (StructV) String added in v0.1.5

func (v StructV) String() string

type TextS added in v0.0.5

type TextS struct {
	// contains filtered or unexported fields
}

func Texts

func Texts(s []encoding.TextMarshaler) TextS

Texts returns stringer/JSON/text marshaler for the text marshaler slice type.

func (TextS) MarshalJSON added in v0.0.5

func (s TextS) MarshalJSON() ([]byte, error)

func (TextS) MarshalText added in v0.0.5

func (s TextS) MarshalText() ([]byte, error)

func (TextS) String added in v0.0.5

func (s TextS) String() string

type TextV added in v0.1.3

type TextV struct {
	// contains filtered or unexported fields
}

func Text

Text returns stringer/JSON/text marshaler for the encoding.TextMarshaler type.

func (TextV) MarshalJSON added in v0.1.3

func (v TextV) MarshalJSON() ([]byte, error)

func (TextV) MarshalText added in v0.1.3

func (v TextV) MarshalText() ([]byte, error)

func (TextV) String added in v0.1.3

func (v TextV) String() string

type TimeP added in v0.0.5

type TimeP struct {
	// contains filtered or unexported fields
}

func Timep

func Timep(p *time.Time) TimeP

Timep returns stringer/JSON/text marshaler for the time pointer type.

func (TimeP) MarshalJSON added in v0.0.5

func (p TimeP) MarshalJSON() ([]byte, error)

func (TimeP) MarshalText added in v0.0.5

func (p TimeP) MarshalText() ([]byte, error)

func (TimeP) String added in v0.0.5

func (p TimeP) String() string

type TimePS added in v0.0.5

type TimePS struct {
	// contains filtered or unexported fields
}

func Timeps

func Timeps(a []*time.Time) TimePS

Timeps returns stringer/JSON/text marshaler for the time pointer slice type.

func (TimePS) MarshalJSON added in v0.0.5

func (a TimePS) MarshalJSON() ([]byte, error)

func (TimePS) MarshalText added in v0.0.5

func (a TimePS) MarshalText() ([]byte, error)

func (TimePS) String added in v0.0.5

func (a TimePS) String() string

type TimeS added in v0.0.5

type TimeS struct {
	// contains filtered or unexported fields
}

func Times

func Times(s []time.Time) TimeS

Times returns stringer/JSON/text marshaler for the slice of byte slice type.

func (TimeS) MarshalJSON added in v0.0.5

func (s TimeS) MarshalJSON() ([]byte, error)

func (TimeS) MarshalText added in v0.0.5

func (s TimeS) MarshalText() ([]byte, error)

func (TimeS) String added in v0.0.5

func (s TimeS) String() string

type TimeV added in v0.1.3

type TimeV struct {
	// contains filtered or unexported fields
}

func Time

func Time(v time.Time) TimeV

Time returns stringer/JSON/text marshaler for the time type.

func (TimeV) MarshalJSON added in v0.1.3

func (v TimeV) MarshalJSON() ([]byte, error)

func (TimeV) MarshalText added in v0.1.3

func (v TimeV) MarshalText() ([]byte, error)

func (TimeV) String added in v0.1.3

func (v TimeV) String() string

type Uint16P added in v0.0.5

type Uint16P struct {
	// contains filtered or unexported fields
}

func Uint16p

func Uint16p(p *uint16) Uint16P

Uint16p returns stringer/JSON/text marshaler for the uint16 pointer type.

func (Uint16P) MarshalJSON added in v0.0.5

func (p Uint16P) MarshalJSON() ([]byte, error)

func (Uint16P) MarshalText added in v0.0.5

func (p Uint16P) MarshalText() ([]byte, error)

func (Uint16P) String added in v0.0.5

func (p Uint16P) String() string

type Uint16PS added in v0.0.5

type Uint16PS struct {
	// contains filtered or unexported fields
}

func Uint16ps

func Uint16ps(a []*uint16) Uint16PS

Uint16ps returns stringer/JSON/text marshaler for the uint16 pointer slice type.

func (Uint16PS) MarshalJSON added in v0.0.5

func (a Uint16PS) MarshalJSON() ([]byte, error)

func (Uint16PS) MarshalText added in v0.0.5

func (a Uint16PS) MarshalText() ([]byte, error)

func (Uint16PS) String added in v0.0.5

func (a Uint16PS) String() string

type Uint16S added in v0.0.5

type Uint16S struct {
	// contains filtered or unexported fields
}

func Uint16s

func Uint16s(s []uint16) Uint16S

Uint16s returns stringer/JSON/text marshaler for the uint16 slice type.

func (Uint16S) MarshalJSON added in v0.0.5

func (s Uint16S) MarshalJSON() ([]byte, error)

func (Uint16S) MarshalText added in v0.0.5

func (s Uint16S) MarshalText() ([]byte, error)

func (Uint16S) String added in v0.0.5

func (s Uint16S) String() string

type Uint16V added in v0.1.3

type Uint16V struct {
	// contains filtered or unexported fields
}

func Uint16

func Uint16(v uint16) Uint16V

Uint16 returns stringer/JSON/text marshaler for the uint16 type.

func (Uint16V) MarshalJSON added in v0.1.3

func (v Uint16V) MarshalJSON() ([]byte, error)

func (Uint16V) MarshalText added in v0.1.3

func (v Uint16V) MarshalText() ([]byte, error)

func (Uint16V) String added in v0.1.3

func (v Uint16V) String() string

type Uint32P added in v0.0.5

type Uint32P struct {
	// contains filtered or unexported fields
}

func Uint32p

func Uint32p(p *uint32) Uint32P

Uint32p returns stringer/JSON/text marshaler for the uint32 pointer type.

func (Uint32P) MarshalJSON added in v0.0.5

func (p Uint32P) MarshalJSON() ([]byte, error)

func (Uint32P) MarshalText added in v0.0.5

func (p Uint32P) MarshalText() ([]byte, error)

func (Uint32P) String added in v0.0.5

func (p Uint32P) String() string

type Uint32PS added in v0.0.5

type Uint32PS struct {
	// contains filtered or unexported fields
}

func Uint32ps

func Uint32ps(a []*uint32) Uint32PS

Uint32ps returns stringer/JSON/text marshaler for the uint32 pointer slice type.

func (Uint32PS) MarshalJSON added in v0.0.5

func (a Uint32PS) MarshalJSON() ([]byte, error)

func (Uint32PS) MarshalText added in v0.0.5

func (a Uint32PS) MarshalText() ([]byte, error)

func (Uint32PS) String added in v0.0.5

func (a Uint32PS) String() string

type Uint32S added in v0.0.5

type Uint32S struct {
	// contains filtered or unexported fields
}

func Uint32s

func Uint32s(s []uint32) Uint32S

Uint32s returns stringer/JSON/text marshaler for the uint32 slice type.

func (Uint32S) MarshalJSON added in v0.0.5

func (s Uint32S) MarshalJSON() ([]byte, error)

func (Uint32S) MarshalText added in v0.0.5

func (s Uint32S) MarshalText() ([]byte, error)

func (Uint32S) String added in v0.0.5

func (s Uint32S) String() string

type Uint32V added in v0.1.3

type Uint32V struct {
	// contains filtered or unexported fields
}

func Uint32

func Uint32(v uint32) Uint32V

Uint32 returns stringer/JSON/text marshaler for the uint32 type.

func (Uint32V) MarshalJSON added in v0.1.3

func (v Uint32V) MarshalJSON() ([]byte, error)

func (Uint32V) MarshalText added in v0.1.3

func (v Uint32V) MarshalText() ([]byte, error)

func (Uint32V) String added in v0.1.3

func (v Uint32V) String() string

type Uint64P added in v0.0.5

type Uint64P struct {
	// contains filtered or unexported fields
}

func Uint64p

func Uint64p(p *uint64) Uint64P

Uint64p returns stringer/JSON/text marshaler for the uint64 pointer type.

func (Uint64P) MarshalJSON added in v0.0.5

func (p Uint64P) MarshalJSON() ([]byte, error)

func (Uint64P) MarshalText added in v0.0.5

func (p Uint64P) MarshalText() ([]byte, error)

func (Uint64P) String added in v0.0.5

func (p Uint64P) String() string

type Uint64PS added in v0.0.5

type Uint64PS struct {
	// contains filtered or unexported fields
}

func Uint64ps

func Uint64ps(a []*uint64) Uint64PS

Uint64ps returns stringer/JSON/text marshaler for the uint64 pointer slice type.

func (Uint64PS) MarshalJSON added in v0.0.5

func (a Uint64PS) MarshalJSON() ([]byte, error)

func (Uint64PS) MarshalText added in v0.0.5

func (a Uint64PS) MarshalText() ([]byte, error)

func (Uint64PS) String added in v0.0.5

func (a Uint64PS) String() string

type Uint64S added in v0.0.5

type Uint64S struct {
	// contains filtered or unexported fields
}

func Uint64s

func Uint64s(s []uint64) Uint64S

Uint64s returns stringer/JSON/text marshaler for the uint64 slice type.

func (Uint64S) MarshalJSON added in v0.0.5

func (s Uint64S) MarshalJSON() ([]byte, error)

func (Uint64S) MarshalText added in v0.0.5

func (s Uint64S) MarshalText() ([]byte, error)

func (Uint64S) String added in v0.0.5

func (s Uint64S) String() string

type Uint64V added in v0.1.3

type Uint64V struct {
	// contains filtered or unexported fields
}

func Uint64

func Uint64(v uint64) Uint64V

Uint64 returns stringer/JSON/text marshaler for the uint64 type.

func (Uint64V) MarshalJSON added in v0.1.3

func (v Uint64V) MarshalJSON() ([]byte, error)

func (Uint64V) MarshalText added in v0.1.3

func (v Uint64V) MarshalText() ([]byte, error)

func (Uint64V) String added in v0.1.3

func (v Uint64V) String() string

type Uint8P added in v0.0.5

type Uint8P struct {
	// contains filtered or unexported fields
}

func Uint8p

func Uint8p(p *uint8) Uint8P

Uint8p returns stringer/JSON/text marshaler for the uint8 pointer type.

func (Uint8P) MarshalJSON added in v0.0.5

func (p Uint8P) MarshalJSON() ([]byte, error)

func (Uint8P) MarshalText added in v0.0.5

func (p Uint8P) MarshalText() ([]byte, error)

func (Uint8P) String added in v0.0.5

func (p Uint8P) String() string

type Uint8PS added in v0.0.5

type Uint8PS struct {
	// contains filtered or unexported fields
}

func Uint8ps

func Uint8ps(a []*uint8) Uint8PS

Uint8ps returns stringer/JSON/text marshaler for the uint8 pointer slice type.

func (Uint8PS) MarshalJSON added in v0.0.5

func (a Uint8PS) MarshalJSON() ([]byte, error)

func (Uint8PS) MarshalText added in v0.0.5

func (a Uint8PS) MarshalText() ([]byte, error)

func (Uint8PS) String added in v0.0.5

func (a Uint8PS) String() string

type Uint8S added in v0.0.5

type Uint8S struct {
	// contains filtered or unexported fields
}

func Uint8s

func Uint8s(s []uint8) Uint8S

Uint8s returns stringer/JSON/text marshaler for the uint8 slice type.

func (Uint8S) MarshalJSON added in v0.0.5

func (s Uint8S) MarshalJSON() ([]byte, error)

func (Uint8S) MarshalText added in v0.0.5

func (s Uint8S) MarshalText() ([]byte, error)

func (Uint8S) String added in v0.0.5

func (s Uint8S) String() string

type Uint8V added in v0.1.3

type Uint8V struct {
	// contains filtered or unexported fields
}

func Uint8

func Uint8(v uint8) Uint8V

Uint8 returns stringer/JSON/text marshaler for the uint8 type.

func (Uint8V) MarshalJSON added in v0.1.3

func (v Uint8V) MarshalJSON() ([]byte, error)

func (Uint8V) MarshalText added in v0.1.3

func (v Uint8V) MarshalText() ([]byte, error)

func (Uint8V) String added in v0.1.3

func (v Uint8V) String() string

type UintP added in v0.0.5

type UintP struct {
	// contains filtered or unexported fields
}

func Uintp

func Uintp(p *uint) UintP

Uintp returns stringer/JSON/text marshaler for the uint pointer type.

func (UintP) MarshalJSON added in v0.0.5

func (p UintP) MarshalJSON() ([]byte, error)

func (UintP) MarshalText added in v0.0.5

func (p UintP) MarshalText() ([]byte, error)

func (UintP) String added in v0.0.5

func (p UintP) String() string

type UintPS added in v0.0.5

type UintPS struct {
	// contains filtered or unexported fields
}

func Uintps

func Uintps(a []*uint) UintPS

Uintps returns stringer/JSON/text marshaler for the uint pointer slice type.

func (UintPS) MarshalJSON added in v0.0.5

func (a UintPS) MarshalJSON() ([]byte, error)

func (UintPS) MarshalText added in v0.0.5

func (a UintPS) MarshalText() ([]byte, error)

func (UintPS) String added in v0.0.5

func (a UintPS) String() string

type UintS added in v0.0.5

type UintS struct {
	// contains filtered or unexported fields
}

func Uints

func Uints(s []uint) UintS

Uints returns stringer/JSON/text marshaler for the uint slice type.

func (UintS) MarshalJSON added in v0.0.5

func (s UintS) MarshalJSON() ([]byte, error)

func (UintS) MarshalText added in v0.0.5

func (s UintS) MarshalText() ([]byte, error)

func (UintS) String added in v0.0.5

func (s UintS) String() string

type UintV added in v0.1.3

type UintV struct {
	// contains filtered or unexported fields
}

func Uint

func Uint(v uint) UintV

Uint returns stringer/JSON/text marshaler for the uint type.

func (UintV) MarshalJSON added in v0.1.3

func (v UintV) MarshalJSON() ([]byte, error)

func (UintV) MarshalText added in v0.1.3

func (v UintV) MarshalText() ([]byte, error)

func (UintV) String added in v0.1.3

func (v UintV) String() string

type UintptrP added in v0.0.5

type UintptrP struct {
	// contains filtered or unexported fields
}

func Uintptrp

func Uintptrp(p *uintptr) UintptrP

Uintptrp returns stringer/JSON/text marshaler for the uintptr pointer type.

func (UintptrP) MarshalJSON added in v0.0.5

func (p UintptrP) MarshalJSON() ([]byte, error)

func (UintptrP) MarshalText added in v0.0.5

func (p UintptrP) MarshalText() ([]byte, error)

func (UintptrP) String added in v0.0.5

func (p UintptrP) String() string

type UintptrPS added in v0.0.5

type UintptrPS struct {
	// contains filtered or unexported fields
}

func Uintptrps

func Uintptrps(a []*uintptr) UintptrPS

Uintptrps returns stringer/JSON/text marshaler for the slice of a pointer to a uintptr type.

func (UintptrPS) MarshalJSON added in v0.0.5

func (a UintptrPS) MarshalJSON() ([]byte, error)

func (UintptrPS) MarshalText added in v0.0.5

func (a UintptrPS) MarshalText() ([]byte, error)

func (UintptrPS) String added in v0.0.5

func (a UintptrPS) String() string

type UintptrS added in v0.0.5

type UintptrS struct {
	// contains filtered or unexported fields
}

func Uintptrs

func Uintptrs(s []uintptr) UintptrS

Uintptrs returns stringer/JSON/text marshaler for the uintptr slice type.

func (UintptrS) MarshalJSON added in v0.0.5

func (s UintptrS) MarshalJSON() ([]byte, error)

func (UintptrS) MarshalText added in v0.0.5

func (s UintptrS) MarshalText() ([]byte, error)

func (UintptrS) String added in v0.0.5

func (s UintptrS) String() string

type UintptrV added in v0.1.3

type UintptrV struct {
	// contains filtered or unexported fields
}

func Uintptr

func Uintptr(v uintptr) UintptrV

Uintptr returns stringer/JSON/text marshaler for the uintptr type.

func (UintptrV) MarshalJSON added in v0.1.3

func (v UintptrV) MarshalJSON() ([]byte, error)

func (UintptrV) MarshalText added in v0.1.3

func (v UintptrV) MarshalText() ([]byte, error)

func (UintptrV) String added in v0.1.3

func (v UintptrV) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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