pfmt

package module
v0.3.0 Latest Latest
Warning

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

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

README

pfmt

Build Status Go Reference

String formatting for Go. Source files are distributed under the BSD-style license.

About

The software is considered to be at a alpha level of readiness - its extremely slow and allocates a lots of memory)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formatter

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

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

func Array

func Array(v interface{}) ArrayV

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

func (ArrayV) MarshalJSON

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

func (ArrayV) MarshalText

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

func (ArrayV) String

func (v ArrayV) String() string

type BoolP

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

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

func (BoolP) MarshalText

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

func (BoolP) String

func (p BoolP) String() string

type BoolPS

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

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

func (BoolPS) MarshalText

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

func (BoolPS) String

func (s BoolPS) String() string

type BoolS

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

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

func (BoolS) MarshalText

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

func (BoolS) String

func (s BoolS) String() string

type BoolV

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

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

func (BoolV) MarshalText

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

func (BoolV) String

func (v BoolV) String() string

type ByteS

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

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

func (ByteS) MarshalText

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

func (ByteS) String

func (s ByteS) String() string

type ByteSP

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

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

func (ByteSP) MarshalText

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

func (ByteSP) String

func (p ByteSP) String() string

type ByteSPS

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

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

func (ByteSPS) MarshalText

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

func (ByteSPS) String

func (a ByteSPS) String() string

type ByteSS

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

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

func (ByteSS) MarshalText

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

func (ByteSS) String

func (s ByteSS) String() string

type ChanV

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

func Chan

func Chan(v interface{}) ChanV

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

func (ChanV) MarshalJSON

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

func (ChanV) MarshalText

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

func (ChanV) String

func (v ChanV) String() string

type Complex128P

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

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

func (Complex128P) MarshalText

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

func (Complex128P) String

func (p Complex128P) String() string

type Complex128PS

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

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

func (Complex128PS) MarshalText

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

func (Complex128PS) String

func (a Complex128PS) String() string

type Complex128S

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

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

func (Complex128S) MarshalText

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

func (Complex128S) String

func (s Complex128S) String() string

type Complex128V

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

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

func (Complex128V) MarshalText

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

func (Complex128V) String

func (v Complex128V) String() string

type Complex64P

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

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

func (Complex64P) MarshalText

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

func (Complex64P) String

func (p Complex64P) String() string

type Complex64PS

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

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

func (Complex64PS) MarshalText

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

func (Complex64PS) String

func (s Complex64PS) String() string

type Complex64S

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

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

func (Complex64S) MarshalText

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

func (Complex64S) String

func (s Complex64S) String() string

type Complex64V

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

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

func (Complex64V) MarshalText

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

func (Complex64V) String

func (v Complex64V) String() string

type DummieV

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

func Dummie

func Dummie(v interface{}) DummieV

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

func (DummieV) MarshalJSON

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

func (DummieV) MarshalText

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

func (DummieV) String

func (v DummieV) String() string

type DurationP

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

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

func (DurationP) MarshalText

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

func (DurationP) String

func (p DurationP) String() string

type DurationPS

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

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

func (DurationPS) MarshalText

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

func (DurationPS) String

func (s DurationPS) String() string

type DurationS

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

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

func (DurationS) MarshalText

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

func (DurationS) String

func (s DurationS) String() string

type DurationV

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

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

func (DurationV) MarshalText

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

func (DurationV) String

func (v DurationV) String() string

type ErrorP

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

func Errp

func Errp(p *error) ErrorP

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

func (ErrorP) MarshalJSON

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

func (ErrorP) MarshalText

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

func (ErrorP) String

func (p ErrorP) String() string

type ErrorPS

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

func Errps

func Errps(s []*error) ErrorPS

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

func (ErrorPS) MarshalJSON

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

func (ErrorPS) MarshalText

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

func (ErrorPS) String

func (s ErrorPS) String() string

type ErrorS

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

func Errs

func Errs(s []error) ErrorS

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

func (ErrorS) MarshalJSON

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

func (ErrorS) MarshalText

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

func (ErrorS) String

func (s ErrorS) String() string

type ErrorV

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

func Err

func Err(v error) ErrorV

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

func (ErrorV) MarshalJSON

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

func (ErrorV) MarshalText

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

func (ErrorV) String

func (v ErrorV) String() string

type Float32P

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

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

func (Float32P) MarshalText

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

func (Float32P) String

func (p Float32P) String() string

type Float32PS

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

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

func (Float32PS) MarshalText

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

func (Float32PS) String

func (a Float32PS) String() string

type Float32S

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

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

func (Float32S) MarshalText

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

func (Float32S) String

func (s Float32S) String() string

type Float32V

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

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

func (Float32V) MarshalText

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

func (Float32V) String

func (v Float32V) String() string

type Float64P

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

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

func (Float64P) MarshalText

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

func (Float64P) String

func (p Float64P) String() string

type Float64PS

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

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

func (Float64PS) MarshalText

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

func (Float64PS) String

func (a Float64PS) String() string

type Float64S

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

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

func (Float64S) MarshalText

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

func (Float64S) String

func (s Float64S) String() string

type Float64V

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

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

func (Float64V) MarshalText

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

func (Float64V) String

func (v Float64V) String() string

type Fmt

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

Formatter implements fmt formatter interface.

func (Fmt) Format

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

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

func Func

func Func(v interface{}) FuncV

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

func (FuncV) MarshalJSON

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

func (FuncV) MarshalText

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

func (FuncV) String

func (v FuncV) String() string

type Int16P

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

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

func (Int16P) MarshalText

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

func (Int16P) String

func (p Int16P) String() string

type Int16PS

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

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

func (Int16PS) MarshalText

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

func (Int16PS) String

func (a Int16PS) String() string

type Int16S

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

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

func (Int16S) MarshalText

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

func (Int16S) String

func (s Int16S) String() string

type Int16V

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

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

func (Int16V) MarshalText

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

func (Int16V) String

func (v Int16V) String() string

type Int32P

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

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

func (Int32P) MarshalText

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

func (Int32P) String

func (p Int32P) String() string

type Int32PS

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

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

func (Int32PS) MarshalText

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

func (Int32PS) String

func (a Int32PS) String() string

type Int32S

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

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

func (Int32S) MarshalText

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

func (Int32S) String

func (s Int32S) String() string

type Int32V

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

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

func (Int32V) MarshalText

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

func (Int32V) String

func (v Int32V) String() string

type Int64P

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

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

func (Int64P) MarshalText

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

func (Int64P) String

func (p Int64P) String() string

type Int64PS

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

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

func (Int64PS) MarshalText

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

func (Int64PS) String

func (a Int64PS) String() string

type Int64S

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

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

func (Int64S) MarshalText

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

func (Int64S) String

func (s Int64S) String() string

type Int64V

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

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

func (Int64V) MarshalText

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

func (Int64V) String

func (v Int64V) String() string

type Int8P

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

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

func (Int8P) MarshalText

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

func (Int8P) String

func (p Int8P) String() string

type Int8PS

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

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

func (Int8PS) MarshalText

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

func (Int8PS) String

func (a Int8PS) String() string

type Int8S

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

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

func (Int8S) MarshalText

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

func (Int8S) String

func (s Int8S) String() string

type Int8V

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

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

func (Int8V) MarshalText

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

func (Int8V) String

func (v Int8V) String() string

type IntP

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

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

func (IntP) MarshalText

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

func (IntP) String

func (p IntP) String() string

type IntPS

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

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

func (IntPS) MarshalText

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

func (IntPS) String

func (a IntPS) String() string

type IntS

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

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

func (IntS) MarshalText

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

func (IntS) String

func (s IntS) String() string

type IntV

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

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

func (IntV) MarshalText

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

func (IntV) String

func (v IntV) String() string

type InterfaceV

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

func Interface

func Interface(v interface{}) InterfaceV

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

func (InterfaceV) MarshalJSON

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

func (InterfaceV) MarshalText

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

func (InterfaceV) String

func (v InterfaceV) String() string

type JSONMarshalerS

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

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

func (JSONMarshalerS) MarshalText

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

func (JSONMarshalerS) String

func (s JSONMarshalerS) String() string

type JSONV

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

func JSON

func JSON(s []KV) JSONV

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

func (JSONV) MarshalJSON

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

func (JSONV) MarshalText

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

func (JSONV) String

func (s JSONV) String() string

type KV

type KV interface {
	encoding.TextMarshaler
	json.Marshaler
}

KV is a key-value pair.

type KVFuncV

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

func KVFunc

func KVFunc(v func() KV) KVFuncV

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

func (KVFuncV) MarshalJSON

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

func (KVFuncV) MarshalText

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

func (KVFuncV) String

func (v KVFuncV) String() string

type MapV

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

func Map

func Map(v interface{}) MapV

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

func (MapV) MarshalJSON

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

func (MapV) MarshalText

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

func (MapV) String

func (v MapV) String() string

type Option

type Option func(*Pretty)

Option changes prettier configuration.

func WithEmpty

func WithEmpty(empty string) Option

WithEmpty sets empty.

func WithFalse

func WithFalse(f string) Option

WithFalse sets false.

func WithNil

func WithNil(null string) Option

WithNil sets nil.

func WithSeparator

func WithSeparator(separator string) Option

WithSeparator sets separator.

func WithStackDepth

func WithStackDepth(depth int) Option

WithStackDepth sets stack depth.

func WithTrue

func WithTrue(t string) Option

WithTrue sets true.

type Prettier

type Prettier interface {
	fmt.Stringer
	KV
}

Prettier.

func Reflect

func Reflect(v interface{}) Prettier

Reflect returns stringer/JSON/text marshaler uses reflection.

type Pretty

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

Pretty.

func New

func New(opts ...Option) Pretty

func (Pretty) Any

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

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

func (Pretty) Anys

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

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

func (Pretty) Array

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

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

func (Pretty) Bool

func (pretty Pretty) Bool(v bool) BoolV

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

func (Pretty) Boolp

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

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

func (Pretty) Boolps

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

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

func (Pretty) Bytes

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

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

func (Pretty) Bytesp

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

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

func (Pretty) Bytesps

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

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

func (Pretty) Bytess

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

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

func (Pretty) Chan

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

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

func (Pretty) Complex128

func (pretty Pretty) Complex128(v complex128) Complex128V

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

func (Pretty) Complex128p

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

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

func (Pretty) Complex128ps

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

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

func (Pretty) Complex128s

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

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

func (Pretty) Complex64

func (pretty Pretty) Complex64(v complex64) Complex64V

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

func (Pretty) Complex64p

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

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

func (Pretty) Complex64ps

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

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

func (Pretty) Complex64s

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

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

func (Pretty) Dummie

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

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

func (Pretty) Duration

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

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

func (Pretty) Durationp

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

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

func (Pretty) Durationps

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

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

func (Pretty) Durations

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

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

func (Pretty) Err

func (pretty Pretty) Err(v error) ErrorV

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

func (Pretty) Errp

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

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

func (Pretty) Errps

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

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

func (Pretty) Errs

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

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

func (Pretty) Float32

func (Pretty) Float32(v float32) Float32V

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

func (Pretty) Float32p

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

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

func (Pretty) Float32ps

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

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

func (Pretty) Float32s

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

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

func (Pretty) Float64

func (Pretty) Float64(v float64) Float64V

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

func (Pretty) Float64p

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

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

func (Pretty) Float64ps

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

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

func (Pretty) Float64s

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

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

func (Pretty) Func

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

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

func (Pretty) Int

func (Pretty) Int(v int) IntV

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

func (Pretty) Int16

func (Pretty) Int16(v int16) Int16V

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

func (Pretty) Int16p

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

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

func (Pretty) Int16ps

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

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

func (Pretty) Int16s

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

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

func (Pretty) Int32

func (Pretty) Int32(v int32) Int32V

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

func (Pretty) Int32p

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

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

func (Pretty) Int32ps

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

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

func (Pretty) Int32s

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

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

func (Pretty) Int64

func (Pretty) Int64(v int64) Int64V

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

func (Pretty) Int64p

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

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

func (Pretty) Int64ps

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

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

func (Pretty) Int64s

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

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

func (Pretty) Int8

func (Pretty) Int8(v int8) Int8V

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

func (Pretty) Int8p

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

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

func (Pretty) Int8ps

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

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

func (Pretty) Int8s

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

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

func (Pretty) Interface

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

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

func (Pretty) Intp

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

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

func (Pretty) Intps

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

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

func (Pretty) Ints

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

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

func (Pretty) JSON

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

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

func (Pretty) JSONMarshalers

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

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

func (Pretty) KVFunc

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

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

func (Pretty) Map

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

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

func (Pretty) Raw

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

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

func (Pretty) Rawp

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

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

func (Pretty) Rawps

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

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

func (Pretty) Raws

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

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

func (Pretty) Reflect

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

Reflect returns stringer/JSON/text marshaler uses reflection.

func (Pretty) Reflects

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

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

func (Pretty) Runes

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

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

func (Pretty) Runesp

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

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

func (Pretty) Runesps

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

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

func (Pretty) Slice

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

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

func (Pretty) String

func (pretty Pretty) String(v string) StringV

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

func (Pretty) Stringp

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

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

func (Pretty) Stringps

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

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

func (Pretty) Strings

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

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

func (Pretty) Struct

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

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

func (Pretty) Text

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

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

func (Pretty) Texts

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

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

func (Pretty) Time

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

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

func (Pretty) Timep

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

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

func (Pretty) Timeps

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

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

func (Pretty) Times

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

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

func (Pretty) Uint

func (pretty Pretty) Uint(v uint) UintV

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

func (Pretty) Uint16

func (Pretty) Uint16(v uint16) Uint16V

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

func (Pretty) Uint16p

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

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

func (Pretty) Uint16ps

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

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

func (Pretty) Uint16s

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

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

func (Pretty) Uint32

func (Pretty) Uint32(v uint32) Uint32V

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

func (Pretty) Uint32p

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

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

func (Pretty) Uint32ps

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

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

func (Pretty) Uint32s

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

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

func (Pretty) Uint64

func (Pretty) Uint64(v uint64) Uint64V

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

func (Pretty) Uint64p

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

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

func (Pretty) Uint64ps

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

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

func (Pretty) Uint64s

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

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

func (Pretty) Uint8

func (Pretty) Uint8(v uint8) Uint8V

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

func (Pretty) Uint8p

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

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

func (Pretty) Uint8ps

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

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

func (Pretty) Uint8s

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

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

func (Pretty) Uintp

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

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

func (Pretty) Uintps

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

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

func (Pretty) Uintptr

func (pretty Pretty) Uintptr(v uintptr) UintptrV

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

func (Pretty) Uintptrp

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

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

func (Pretty) Uintptrps

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

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

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

func (Pretty) Uints

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

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

type RawP

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

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

func (RawP) MarshalText

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

func (RawP) String

func (p RawP) String() string

type RawPS

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

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

func (RawPS) MarshalText

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

func (RawPS) String

func (s RawPS) String() string

type RawS

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

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

func (RawS) MarshalText

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

func (RawS) String

func (s RawS) String() string

type RawV

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

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

func (RawV) MarshalText

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

func (RawV) String

func (v RawV) String() string

type ReflectS

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

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

func (ReflectS) MarshalText

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

func (ReflectS) String

func (s ReflectS) String() string

type ReflectV

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

func (ReflectV) MarshalJSON

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

func (ReflectV) MarshalText

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

func (ReflectV) String

func (v ReflectV) String() string

type RuneS

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

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

func (RuneS) MarshalText

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

func (RuneS) String

func (s RuneS) String() string

type RuneSP

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

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

func (RuneSP) MarshalText

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

func (RuneSP) String

func (p RuneSP) String() string

type RuneSPS

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

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

func (RuneSPS) MarshalText

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

func (RuneSPS) String

func (a RuneSPS) String() string

type SliceV

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

func Slice

func Slice(v interface{}) SliceV

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

func (SliceV) MarshalJSON

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

func (SliceV) MarshalText

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

func (SliceV) String

func (v SliceV) String() string

type StringP

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

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

func (StringP) MarshalText

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

func (StringP) String

func (p StringP) String() string

type StringPS

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

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

func (StringPS) MarshalText

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

func (StringPS) String

func (a StringPS) String() string

type StringS

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

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

func (StringS) MarshalText

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

func (StringS) String

func (s StringS) String() string

type StringV

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

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

func (StringV) MarshalText

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

func (StringV) String

func (v StringV) String() string

type StructV

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

func Struct

func Struct(v interface{}) StructV

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

func (StructV) MarshalJSON

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

func (StructV) MarshalText

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

func (StructV) String

func (v StructV) String() string

type TextS

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

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

func (TextS) MarshalText

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

func (TextS) String

func (s TextS) String() string

type TextV

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

func Text

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

func (TextV) MarshalJSON

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

func (TextV) MarshalText

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

func (TextV) String

func (v TextV) String() string

type TimeP

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

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

func (TimeP) MarshalText

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

func (TimeP) String

func (p TimeP) String() string

type TimePS

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

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

func (TimePS) MarshalText

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

func (TimePS) String

func (a TimePS) String() string

type TimeS

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

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

func (TimeS) MarshalText

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

func (TimeS) String

func (s TimeS) String() string

type TimeV

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

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

func (TimeV) MarshalText

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

func (TimeV) String

func (v TimeV) String() string

type Uint16P

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

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

func (Uint16P) MarshalText

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

func (Uint16P) String

func (p Uint16P) String() string

type Uint16PS

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

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

func (Uint16PS) MarshalText

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

func (Uint16PS) String

func (a Uint16PS) String() string

type Uint16S

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

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

func (Uint16S) MarshalText

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

func (Uint16S) String

func (s Uint16S) String() string

type Uint16V

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

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

func (Uint16V) MarshalText

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

func (Uint16V) String

func (v Uint16V) String() string

type Uint32P

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

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

func (Uint32P) MarshalText

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

func (Uint32P) String

func (p Uint32P) String() string

type Uint32PS

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

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

func (Uint32PS) MarshalText

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

func (Uint32PS) String

func (a Uint32PS) String() string

type Uint32S

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

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

func (Uint32S) MarshalText

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

func (Uint32S) String

func (s Uint32S) String() string

type Uint32V

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

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

func (Uint32V) MarshalText

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

func (Uint32V) String

func (v Uint32V) String() string

type Uint64P

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

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

func (Uint64P) MarshalText

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

func (Uint64P) String

func (p Uint64P) String() string

type Uint64PS

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

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

func (Uint64PS) MarshalText

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

func (Uint64PS) String

func (a Uint64PS) String() string

type Uint64S

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

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

func (Uint64S) MarshalText

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

func (Uint64S) String

func (s Uint64S) String() string

type Uint64V

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

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

func (Uint64V) MarshalText

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

func (Uint64V) String

func (v Uint64V) String() string

type Uint8P

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

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

func (Uint8P) MarshalText

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

func (Uint8P) String

func (p Uint8P) String() string

type Uint8PS

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

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

func (Uint8PS) MarshalText

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

func (Uint8PS) String

func (a Uint8PS) String() string

type Uint8S

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

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

func (Uint8S) MarshalText

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

func (Uint8S) String

func (s Uint8S) String() string

type Uint8V

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

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

func (Uint8V) MarshalText

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

func (Uint8V) String

func (v Uint8V) String() string

type UintP

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

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

func (UintP) MarshalText

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

func (UintP) String

func (p UintP) String() string

type UintPS

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

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

func (UintPS) MarshalText

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

func (UintPS) String

func (a UintPS) String() string

type UintS

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

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

func (UintS) MarshalText

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

func (UintS) String

func (s UintS) String() string

type UintV

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

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

func (UintV) MarshalText

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

func (UintV) String

func (v UintV) String() string

type UintptrP

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

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

func (UintptrP) MarshalText

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

func (UintptrP) String

func (p UintptrP) String() string

type UintptrPS

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

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

func (UintptrPS) MarshalText

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

func (UintptrPS) String

func (a UintptrPS) String() string

type UintptrS

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

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

func (UintptrS) MarshalText

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

func (UintptrS) String

func (s UintptrS) String() string

type UintptrV

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

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

func (UintptrV) MarshalText

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

func (UintptrV) String

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