Documentation ¶
Index ¶
- Constants
- Variables
- func Align(a string) string
- func D(a ...interface{})
- func FmtTable(b [][]string) (ss []string)
- func Format(str string, data ...interface{}) string
- func Fp(w io.Writer, a ...interface{}) (int, error)
- func Fpjson(w io.Writer, a ...interface{}) (int, error)
- func Fprint(w io.Writer, a ...interface{}) (int, error)
- func Fputs(w io.Writer, a ...interface{}) (int, error)
- func Mark(a ...interface{})
- func MarkStack(skip int, a ...interface{})
- func MarkStackFull()
- func NewOptional(depth int, b style, opt option) *optional
- func P(a ...interface{}) (int, error)
- func Pjson(a ...interface{}) (int, error)
- func Print(a ...interface{}) (int, error)
- func Puts(a ...interface{}) (int, error)
- func Sd(a ...interface{}) string
- func Smark(a ...interface{}) string
- func SmarkStack(skip int, a ...interface{}) string
- func SmarkStackFunc(skip int, a ...interface{}) string
- func Sp(a ...interface{}) string
- func Spjson(a ...interface{}) string
- func Sprint(a ...interface{}) string
- func Sputs(a ...interface{}) string
- func TableText(b string, prefix, split string) string
- func ToTable(t interface{}, is ...interface{}) [][]string
- type BytesViewer
Constants ¶
View Source
const ( CanDefaultString option // can use .(fmt.Stringer) CanFilterDuplicate // Filter duplicates CanRowSpan // Fold line )
Formatted option
View Source
const ( StyleP style // Display type and data StylePuts // Display data StylePrint // Display data; string without quotes StylePjson // The json style display; Do not show private )
Formatted style
Variables ¶
View Source
var Printf = fmt.Printf
Printf fmt.Printf
View Source
var Println = fmt.Println
Println fmt.Println
View Source
var Space byte = ' '
Space rune
Functions ¶
func NewOptional ¶
func NewOptional(depth int, b style, opt option) *optional
NewOptional ffmt optional
func Smark ¶ added in v1.3.1
func Smark(a ...interface{}) string
Smark returns Output prefix current line position
func SmarkStack ¶ added in v1.3.1
SmarkStack stack information
func SmarkStackFunc ¶ added in v1.4.1
SmarkStackFunc stack information
func Sp ¶
func Sp(a ...interface{}) string
Sp The go style friendly display types and data to string
Types ¶
type BytesViewer ¶ added in v1.4.5
type BytesViewer []byte
BytesViewer bytes viewer
func (BytesViewer) String ¶ added in v1.4.5
func (b BytesViewer) String() string
String returns view in hexadecimal
Source Files ¶
Click to show internal directories.
Click to hide internal directories.