liudng / godump

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Other


Languages

Language:Go 100.0%