An open API service indexing awesome lists of open source software.

https://github.com/berquerant/structfields


https://github.com/berquerant/structfields

go

Last synced: about 1 year ago
JSON representation

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"]
```