ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] > [github](https://github.com/sanity-io/litter) ## 安装 `go get -u github.com/sanity-io/litter` ## 使用 ``` type Person struct { Name string Age int Parent *Person } litter.Dump(Person{ Name: "Bob", Age: 20, Parent: &Person{ Name: "Jane", Age: 50, }, }) //输出 main.Person{ Name: "Bob", Age: 20, Parent: &main.Person{ Name: "Jane", Age: 50, Parent: nil, }, } ```