【文件属性】:
文件名称:pretty:漂亮打印Go数据结构
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-29 10:08:11
Go
漂亮
Go数据结构的漂亮打印机
安装
$ go get github.com/gobs/pretty
文献资料
例子
package main
import "github.com/gobs/pretty"
func main() {
stuff := map[string]interface{} {
"a": 1,
"b": "due",
"c": []int { 1, 2, 3 },
"d": false,
}
pretty.PrettyPrint(stuff)
}
【文件预览】:
pretty-master
----tabprinter.go(1KB)
----pretty.go(4KB)
----LICENSE(1KB)
----.gitignore(252B)
----README.md(441B)
----pretty_test.go(2KB)