Skip to content

XdpCs/print-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

print-value

GitHub watchers GitHub stars GitHub forks GitHub last commit GitHub repo size GitHub license

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

go get -u github.com/XdpCs/print-value@master

go mod

require github.com/XdpCs/print-value latest

About

Print Golang's struct ptr's value

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages