godump

package module
v0.0.0-...-5c7e73a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2015 License: BSD-3-Clause Imports: 3 Imported by: 4 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(v interface{})

Print to standard out the value that is passed as the argument with indentation. Pointers are dereferenced.

func Sdump

func Sdump(v interface{}) string

Return the value that is passed as the argument with indentation. Pointers are dereferenced.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址