https://github.com/weiwenchen2022/structof
Utilities for Go structs
https://github.com/weiwenchen2022/structof
go golang structs
Last synced: 2 months ago
JSON representation
Utilities for Go structs
- Host: GitHub
- URL: https://github.com/weiwenchen2022/structof
- Owner: weiwenchen2022
- License: bsd-3-clause
- Created: 2023-09-19T06:17:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T07:18:09.000Z (over 2 years ago)
- Last Synced: 2025-01-17T18:19:18.059Z (about 1 year ago)
- Topics: go, golang, structs
- Language: Go
- Homepage: https://godoc.org/github.com/weiwenchen2022/structof
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# structof
Package structof contains various utilities to work with Go's structs.
It can convert a struct into a `map[string]any`, and added other utilities for structs.
It's basically a high level package based on primitives from the reflect package.
Feel free to add new functions or improve the existing code.
## Install
```bash
go get github.com/weiwenchen2022/structof
```
## Spec
GoDoc: [https://godoc.org/github.com/weiwenchen2022/structof](https://godoc.org/github.com/weiwenchen2022/structof)