pfmt

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: BSD-3-Clause Imports: 11 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 Float32

func Float32(v float32) float32V

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

func Float64

func Float64(v float64) float64V

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

func Formatter added in v0.0.2

func Formatter(v interface{}) fmt.Formatter

Formatter returns formatter.

func Func added in v0.0.2

func Func(v func() KV) funcV

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

func Int

func Int(v int) intV

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

func Int16

func Int16(v int16) int16V

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

func Int32

func Int32(v int32) int32V

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

func Int64

func Int64(v int64) int64V

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

func Int8

func Int8(v int8) int8V

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

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 Raw

func Raw(v []byte) rawV

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

func Reflect

func Reflect(v interface{}) reflectV

Reflect returns stringer/JSON/text marshaler uses reflection.

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.

func String

func String(v string) stringV

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

func Text

func Text(v encoding.TextMarshaler) textV

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

func Time

func Time(v time.Time) timeV

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

func Uint

func Uint(v uint) uintV

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

func Uint16

func Uint16(v uint16) uint16V

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

func Uint32

func Uint32(v uint32) uint32V

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

func Uint64

func Uint64(v uint64) uint64V

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

func Uint8

func Uint8(v uint8) uint8V

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

func Uintptr

func Uintptr(v uintptr) uintptrV

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

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 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 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 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 Errorp

func Errorp(p *error) ErrorP

Errorp 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 Errorps

func Errorps(s ...*error) ErrorPS

Errorps 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 Errors

func Errors(s ...error) ErrorS

Errors 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 Error

func Error(v error) ErrorV

Error 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 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 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 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 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 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 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 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 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 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 ReflectS added in v0.0.5

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

func Reflects

func Reflects(s ...interface{}) ReflectS

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 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 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 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 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 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 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 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 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 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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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