代码拉取完成,页面将自动刷新
package ffmt
import (
"io"
)
const colSym = ": "
// Space rune
var Space byte = ' '
// p go style display types for debug
var defD = NewOptional(10, StyleP, CanFilterDuplicate|CanRowSpan)
// D for debug
func D(a ...interface{}) {
MarkStack(1, defD.Sprint(a...))
}
// Sd for debug
func Sd(a ...interface{}) string {
return SmarkStack(1, defD.Sprint(a...))
}
// P go style display types
var defP = NewOptional(5, StyleP, CanDefaultString|CanFilterDuplicate|CanRowSpan)
// Fp The go style friendly display types and data to writer
func Fp(w io.Writer, a ...interface{}) (int, error) {
return defP.Fprint(w, a...)
}
// P The go style friendly display types and data
func P(a ...interface{}) (int, error) {
return defP.Print(a...)
}
// Sp The go style friendly display types and data to string
func Sp(a ...interface{}) string {
return defP.Sprint(a...)
}
// Puts go style
var defPuts = NewOptional(5, StylePuts, CanDefaultString|CanFilterDuplicate|CanRowSpan)
// Fputs The go style friendly to writer
func Fputs(w io.Writer, a ...interface{}) (int, error) {
return defPuts.Fprint(w, a...)
}
// Puts The go style friendly display
func Puts(a ...interface{}) (int, error) {
return defPuts.Print(a...)
}
// Sputs The go style friendly to string
func Sputs(a ...interface{}) string {
return defPuts.Sprint(a...)
}
// Print go style
var defPrint = NewOptional(5, StylePrint, CanDefaultString|CanFilterDuplicate|CanRowSpan)
// Fprint The go style friendly to writer
func Fprint(w io.Writer, a ...interface{}) (int, error) {
return defPrint.Fprint(w, a...)
}
// Print The go style friendly display
func Print(a ...interface{}) (int, error) {
return defPrint.Print(a...)
}
// Sprint The go style friendly to string
func Sprint(a ...interface{}) string {
return defPrint.Sprint(a...)
}
// Pjson json style
var defPjson = NewOptional(20, StylePjson, CanDefaultString|CanRowSpan)
// Fpjson The json style friendly display to writer
func Fpjson(w io.Writer, a ...interface{}) (int, error) {
return defPjson.Fprint(w, a...)
}
// Pjson The json style friendly display
func Pjson(a ...interface{}) (int, error) {
return defPjson.Print(a...)
}
// Spjson The json style friendly display to string
func Spjson(a ...interface{}) string {
return defPjson.Sprint(a...)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。