https://github.com/berquerant/structfields
https://github.com/berquerant/structfields
go
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/berquerant/structfields
- Owner: berquerant
- Created: 2024-11-11T03:08:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T00:44:42.000Z (about 1 year ago)
- Last Synced: 2025-03-31T11:30:38.752Z (about 1 year ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# structfields
Extract metadata from `struct` fields.
``` go
type Example struct {
A int `json:"ja" yaml:"ya"`
}
s, _ := structfields.New(Example{})
s.Fields[0].TagKeys // ["json", "yaml"]
```