文件名称:goprint:打印格式struct,slice,map,anyvar
文件大小:1KB
文件格式:ZIP
更新时间:2024-05-27 05:33:35
Go
goprint GoLang Print API您可以打印任何变量(字符串,结构,切片,映射,ptr等) 例子: package main import ( "github.com/MouseSun/goprint" ) type TestStruct1 struct { Id int32 Value string } type TestStruct struct { Id int32 Value string St TestStruct1 } func main () { test := TestStruct { 1 , "hello struct" , TestStruct1 { 2 , "hello struct2" }} goprint . P ( "test tag" , test ) }
【文件预览】:
goprint-master
----goprint.go(2KB)
----README.md(424B)