https://github.com/xdpcs/print-value
Print Golang's struct ptr's value
https://github.com/xdpcs/print-value
Last synced: 3 months ago
JSON representation
Print Golang's struct ptr's value
- Host: GitHub
- URL: https://github.com/xdpcs/print-value
- Owner: XdpCs
- License: mit
- Created: 2023-11-09T02:39:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-13T02:12:52.000Z (over 1 year ago)
- Last Synced: 2025-03-28T18:08:17.090Z (4 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# print-value





Print Golang's struct ptr's value
## Why I write this tool
When I use fmt.Print-related functions to output a struct pointer, it prints the address. At this point, you can choose
to implement the String() method, but I'm too lazy, so I wrote this tool.## install
`go get`
```shell
go get -u github.com/XdpCs/print-value@master
````go mod`
```shell
require github.com/XdpCs/print-value latest
```