stringify

package
v0.0.0-...-fa26ab0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INDENTATION_SIZE = 4
)

Variables

This section is empty.

Functions

func Bool

func Bool(value bool) string

func Int

func Int(value int64) string

func Interface

func Interface(value interface{}) string

func Map

func Map(value interface{}) string

func Slice

func Slice(value []interface{}) string

func SliceOfBytes

func SliceOfBytes(value []byte) string

func String

func String(value string) string

func Struct

func Struct(name string, fields ...*structField) string

Struct creates a string representation of the given struct details.

func StructBuilder

func StructBuilder(name string, fields ...*structField) *structBuilder

StructBuilder returns a builder for the struct that can dynamically be modified.

func StructField

func StructField(name string, value interface{}) *structField

func UInt

func UInt(value uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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