ffmt:Golang美化人类数据显示

时间:2024-05-25 02:02:19
【文件属性】:

文件名称:ffmt:Golang美化人类数据显示

文件大小:21KB

文件格式:ZIP

更新时间:2024-05-25 02:02:19

go fmt golang-library for-humans prettify

Golang美化人类的数据显示 用法 package main import ( ffmt "gopkg.in/ffmt.v1" ) func main () { example () } type mt struct { String string Int int Slice [] int Map map [ string ] interface {} } func example () { m := mt { "hello world" , 100 , [] int { 1 , 2 , 3 , 4 , 5 , 6 }, map [ string ] interface {}{ "A" : 123 , "BB" : 456 , }, } fmt . Println ( m ) // fmt the default form


【文件预览】:
ffmt-master
----go.mod(25B)
----puts.go(2KB)
----fmt.go(7KB)
----misc.go(739B)
----align_test.go(288B)
----.travis.yml(147B)
----stack_test.go(199B)
----LICENSE(1KB)
----fmt_test.go(2KB)
----align.go(4KB)
----bytes_viewer.go(1KB)
----examples()
--------main.go(2KB)
----format_test.go(424B)
----fmt_row_test.go(12KB)
----sort.go(949B)
----README.md(3KB)
----README_cn.md(3KB)
----stack.go(1KB)
----flatten.go(695B)
----opt.go(2KB)
----builder.go(560B)
----table_test.go(1KB)
----format.go(1KB)
----flatten_test.go(1KB)
----table.go(3KB)
----cmd()
--------tablefmt()
--------jsonfmt()
----bytes_viewer_test.go(559B)

网友评论