Simple go structure dumper
Explore the docs »
StructDump takes go struct and recursively dumps all fields to standard output in "path" format.
The output format is suitable for pasting to excel sheets, documentation, or generally to any text files.
go get github.com/encero/structdump
import "github.com/encero/structdump"
func main() {
type SimpleType struct {
AnInt int
AnString string
AnStringSlice []string
}
structdump.Dump(reflect.TypeOf(SimpleType{}))
// Output:
// SimpleType.AnInt int
// SimpleType.AnString string
// SimpleType.AnStringSlice[] string
}
For more details, please refer to the Documentation
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.