package
1.5.4
Repository: https://github.com/yiuterran/go-common.git
Documentation: pkg.go.dev

# README

# Functions

Base64 returns the []byte that s represents.
Circular reference of the path from the root.
ColorStr string.
Duration from parsing s.
F is a shortcut for Format with color.
Format a list of tokens.
GetPrivateField field value via field index TODO: we can use a LRU cache for the copy of the values, but it might be trivial for just testing.
P pretty print the value list vs.
Plain is a shortcut for Format with plain color.
Ptr returns a pointer to v.
StripColor is copied from https://github.com/acarl005/stripansi.
Time from parsing s.
Tokenize a random Go value.

# Constants

Black type.
Blue type.
Bool type.
Byte type.
Chan type.
Colon type.
Comma type.
Complex type.
Cyan type.
Float type.
Func type.
Green type.
InlineComma type.
Len type.
Magenta type.
MapClose type.
MapKey type.
MapOpen type.
Nil type.
None type.
Number type.
ParenClose type.
ParenOpen type.
PointerCircular type.
PointerClose type.
PointerOpen type.
Red type.
Rune type.
SliceClose type.
SliceItem type.
SliceOpen type.
String type.
StructClose type.
StructField type.
StructKey type.
StructOpen type.
TypeName type.
UnsafePointer type.
White type.
Yellow type.

# Variables

DefaultTheme colors for Sprint.
NoTheme colors for Sprint.
Stdout is the default stdout for gop.P .
SupportsColor returns true if current shell supports ANSI color.

# Structs

Token represents a symbol in value layout.

# Type aliases

Color type.
Type of token.