prettyprint

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hexdigits added in v1.10.0

func Hexdigits(n uint64) int

func Multiline

func Multiline(v *api.Variable, indent string, sfmt *SimpleFormat) string

func ShortenFunctionName added in v1.12.0

func ShortenFunctionName(fnname string) string

func ShortenType

func ShortenType(typ string) string

func Singleline

func Singleline(v *api.Variable, includeType, fullTypes bool) string

Types

type SimpleFormat added in v1.10.0

type SimpleFormat struct {
	HexdumpString bool   // hexdump strings when printing
	IntFormat     string // formatting directive for integers
	FloatFormat   string // formatting directive for floats
}

SimpleFormat describes how a variable should be formatted

func (*SimpleFormat) Apply added in v1.10.0

func (sfmt *SimpleFormat) Apply(v *api.Variable) string

Jump to

Keyboard shortcuts

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