stringify

package
v2.0.0-...-59fec89 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 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 Float32

func Float32(f float32) string

func Float64

func Float64(f float64) 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