Skip to content

ferminhg/fleabug

Repository files navigation

FleaBug: GoLang Dumper

Go Report Card Maintainability

FleaBug provides an easy and pretty fmt.Println alternative to Go Lang projects. It shows value plus type and also trace (file, line, and func)

Quick Start

Add this import line to the file you're working in:

import "github.com/ferminhg/fleabug"
fleabug.Dump("wopwop")
fleabug.Dump(1, 2, 3)

Sample Dump Output

------------------------------------------------------------
wopwop  (string)
# Called from $HOME/go/src/github.com/ferminhg/fleabug/dumper_test.go line #62 
# func: github.com/ferminhg/fleabug.TestDumpDummy
------------------------------------------------------------

------------------------------------------------------------
1   (int)
2   (int)
3   (int)
# Called from $HOME/go/src/github.com/ferminhg/fleabug/dumper_test.go line #63 
# func: github.com/ferminhg/fleabug.TestDumpDummy
------------------------------------------------------------

Installation

$ go get -u github.com/ferminhg/fleabug

Credits

License

Fleabug is released under the MIT License. See the bundled LICENSE file for details.