https://github.com/ferminhg/fleabug
GoLang Dumper
https://github.com/ferminhg/fleabug
dump golang golang-library printf
Last synced: 8 days ago
JSON representation
GoLang Dumper
- Host: GitHub
- URL: https://github.com/ferminhg/fleabug
- Owner: ferminhg
- License: mit
- Created: 2020-05-09T12:21:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T15:25:30.000Z (over 5 years ago)
- Last Synced: 2024-06-20T12:46:06.949Z (over 1 year ago)
- Topics: dump, golang, golang-library, printf
- Language: Go
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FleaBug: GoLang Dumper
[](https://goreportcard.com/report/github.com/ferminhg/fleabug)
[](https://codeclimate.com/github/ferminhg/fleabug/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:
```Go
import "github.com/ferminhg/fleabug"
```
```go
fleabug.Dump("wopwop")
fleabug.Dump(1, 2, 3)
````
## Sample Dump Output
```go
------------------------------------------------------------
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
```bash
$ go get -u github.com/ferminhg/fleabug
```
## Credits
* Fermin Hernandez ([@fermin](https://www.linkedin.com/in/ferminhdez/))
## License
Fleabug is released under the MIT License. See the bundled LICENSE file for details.