tableme

package module
v0.0.0-...-f444eb8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(raw []byte, colorRules []*ColorRule) *bytes.Buffer

func StringifyBool

func StringifyBool(b bool) string

func StringifyIntPtr

func StringifyIntPtr(i *int64) string

func StringifyString

func StringifyString(s string) string

func StringifyStringPtr

func StringifyStringPtr(s *string) string

func TableMe

func TableMe(headerArgs []string, records [][]string, noHeaders bool) []byte

func WithDefault

func WithDefault(val *string, defaultVal string) string

func WithEmptyStringDefault

func WithEmptyStringDefault(val *string) string

Types

type ColorRule

type ColorRule struct {
	Pattern         string
	CompiledPattern *regexp.Regexp
	Color           string
}

Jump to

Keyboard shortcuts

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