godump
godump copied to clipboard
Dumps information about a variable Like var_dump() in php.
godump
Dumps information about a variable. Now godump is part of zhgo project.
Install
go get github.com/liudng/godump
Sample code
package main
import (
"github.com/liudng/godump"
)
func main() {
a := make(map[string]int64)
a["A"] = 1
a["B"] = 2
godump.Dump(a)
}
Then Print:
(map[string]int64)
A(int64) 1
B(int64) 2