Skip to content
/ godump Public

Dumps information about a variable Like var_dump() in php.

License

Notifications You must be signed in to change notification settings

liudng/godump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godump

Dumps information about a variable. Now godump is part of zhgo project.

Build Status Coverage GoDoc

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