formatting

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntFormat

func IntFormat(maxValue int) string

IntFormat ...

Types

type CB58

type CB58 struct{ Bytes []byte }

CB58 formats bytes in checksummed base-58 encoding

func (*CB58) FromString

func (cb58 *CB58) FromString(str string) error

FromString ...

func (CB58) MarshalJSON

func (cb58 CB58) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (CB58) String

func (cb58 CB58) String() string

func (*CB58) UnmarshalJSON

func (cb58 *CB58) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

type CustomStringer

type CustomStringer struct{ Stringer func() string }

CustomStringer ...

func (CustomStringer) String

func (cs CustomStringer) String() string

type DumpBytes

type DumpBytes struct{ Bytes []byte }

DumpBytes ...

func (DumpBytes) String

func (db DumpBytes) String() string

type PrefixedStringer

type PrefixedStringer interface {
	fmt.Stringer

	PrefixedString(prefix string) string
}

PrefixedStringer extends a stringer that adds a prefix

Jump to

Keyboard shortcuts

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