Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/structfields


https://github.com/icholy/structfields

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Package structfields

> Enumerate struct types and their fields from Go source files.

[![Go Reference](https://pkg.go.dev/badge/github.com/icholy/structfields.svg)](https://pkg.go.dev/github.com/icholy/structfields)

**Notes**

* The intended use-case is generating docs for config structs.
* Embedded struct fields are flattened into regular fields.
* Embedded fields are not de-duplicated.
* Fields with inline struct types are not well supported.