InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 21 Go Struct Projects
-
Project mention: argp: GNU-style command line argument parser for Go | news.ycombinator.com | 2025-03-23
Cobra is certainly popular, but it has many weird edge cases and limitations. It's been a while since I've used it so I can't recall the specifics, but I do remember it being a very poor experience, both as a developer and as a user of an app that uses it.
I've had a much better experience using https://github.com/alecthomas/kong , and I've heard good things about https://github.com/urfave/cli , so I would recommend those over Cobra.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
-
-
-
Project mention: Show HN: Generate Go structs from multiple JSON objects | news.ycombinator.com | 2024-09-12
-
goq
A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library
-
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
-
-
go-traits
A concept package that helps implement mixin behavior using embedded structs and hook interfaces.
-
-
gen
gen is a generic general use Go functions library with the intention of replacing duplicated code where the same functionality is needed across multiple types, and provides a common interface for the functionality. The library is designed to be used in a wide variety of projects and is designed to be easy to use. (by devnw)
-
-
-
textra
A package designed to extract and work with go structs as values. Types & Tags export (by ravsii)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Struct discussion
Go Struct related posts
-
Show HN: Generate Go structs from multiple JSON objects
-
Go-xmlstruct: generate Go structs from example XML documents
-
I made a mind map of the whole go standard library
-
make-constructor: a cli-tool to generate constructor code for a struct. It doesn't need manual installation, just add a comment line to the struct then it works.
-
Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.
-
Visualizing struct embedding in Go
-
Inconsistent typing in JSON feed
-
A note from our sponsor - InfluxDB
www.influxdata.com | 15 May 2025
Index
What are some of the best open-source Struct projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | kong | 2,615 |
2 | defaults | 829 |
3 | goverter | 677 |
4 | protoc-gen-gotag | 394 |
5 | go-jsonstruct | 336 |
6 | goq | 265 |
7 | typex | 205 |
8 | gody | 130 |
9 | binstruct | 106 |
10 | faker | 99 |
11 | go-xmlstruct | 84 |
12 | flat | 69 |
13 | go-httpheader | 47 |
14 | straf | 41 |
15 | newc | 35 |
16 | go-traits | 22 |
17 | anyflag | 16 |
18 | gen | 13 |
19 | gonfig | 9 |
20 | gobetter | 9 |
21 | textra | 7 |