应用环境是:命令行环境下希望能够向用户展示特定的数据结构. 请问大家有没有什么库能够实现?
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
fmt.Printf("%#v", xxx) 不行?
fmt.Printf("%#v", xxx)
`fmt.Printf("%#v", xxx)` 不行?
用fmt的话数据量大一点可读性就很差了..
Go圣经 中有一个 Display,可以看看!源码在这里 https://github.com/adonovan/gopl.io/blob/master/ch12/display/display.go
[Go圣经](http://books.studygolang.com/gopl-zh/ch12/ch12-03.html) 中有一个 Display,可以看看!源码在这里 https://github.com/adonovan/gopl.io/blob/master/ch12/display/display.go
嗯 谢谢!
找到一个解决方案提供给大家
https://github.com/modood/table
`单行代码`
fmt.Printf("%#v", xxx)
不行?用fmt的话数据量大一点可读性就很差了..
Go圣经 中有一个 Display,可以看看!源码在这里 https://github.com/adonovan/gopl.io/blob/master/ch12/display/display.go
嗯 谢谢!
找到一个解决方案提供给大家
https://github.com/modood/table