Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xdpcs/print-value
Print Golang's struct ptr's value
https://github.com/xdpcs/print-value
Last synced: 17 days 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-13T02:12:52.000Z (about 1 year ago)
- Last Synced: 2024-10-14T01:18:14.611Z (about 1 month 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
![GitHub watchers](https://img.shields.io/github/watchers/XdpCs/print-value?style=social)
![GitHub stars](https://img.shields.io/github/stars/XdpCs/print-value?style=social)
![GitHub forks](https://img.shields.io/github/forks/XdpCs/print-value?style=social)
![GitHub last commit](https://img.shields.io/github/last-commit/XdpCs/print-value?style=flat-square)
![GitHub repo size](https://img.shields.io/github/repo-size/XdpCs/print-value?style=flat-square)
![GitHub license](https://img.shields.io/github/license/XdpCs/print-value?style=flat-square)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
```