Go Struct

Open-source Go projects categorized as Struct

Top 21 Go Struct Projects

  • kong

    Kong is a command-line parser for Go (by alecthomas)

  • Project mention: climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more | /r/golang | 2023-07-07

    I’ve been using https://github.com/alecthomas/kong for exposing generated protobuf structs for CLI args. How does your library compare?

  • defaults

    Initialize structs with default values (by creasty)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • goverter

    Generate type-safe Go converters by simply defining an interface

  • protoc-gen-gotag

    Add custom struct tags to protobuf generated structs

  • goq

    A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library

  • go-jsonstruct

    Generate Go structs from multiple JSON objects.

  • 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

    SaaSHub logo
  • binstruct

    Golang binary decoder for mapping data into the structure

  • faker

    Random fake data and struct generator for Go. (by pioz)

  • gody

    :balloon: A lightweight struct validator for Go

  • flat

    Flatten/unflatten nested map or JSON object in Golang (by nqd)

  • go-xmlstruct

    Generate Go structs from multiple XML documents.

  • go-httpheader

    A Go library for encoding structs into Header fields.

  • straf

    Convert Golang Struct To GraphQL Object On The Fly

  • newc

    A code generator that generates constructor code for Golang structures.

  • go-traits

    A concept package that helps implement mixin behavior using embedded structs and hook interfaces.

  • anyflag

    Generic implementation of Cobra Value and SliceValue types

  • 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)

  • gobetter

    GO Better - code generator for struct required fields

  • gonfig

    Tag based configuration loader from different providers

  • 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

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Struct related posts

  • Go-xmlstruct: generate Go structs from example XML documents

    1 project | news.ycombinator.com | 8 Jan 2023
  • I made a mind map of the whole go standard library

    1 project | /r/golang | 3 Dec 2022
  • 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.

    1 project | /r/golang | 5 Aug 2022
  • Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.

    1 project | /r/golang | 18 Jun 2022
  • Visualizing struct embedding in Go

    2 projects | /r/golang | 1 Nov 2021
  • Inconsistent typing in JSON feed

    1 project | /r/golang | 25 May 2021
  • goverter: Generate type-safe Go converters by simply defining an interface.

    2 projects | /r/golang | 17 Mar 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 24 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Struct projects in Go? This list will help you:

Project Stars
1 kong 1,847
2 defaults 720
3 goverter 449
4 protoc-gen-gotag 345
5 goq 251
6 go-jsonstruct 232
7 typex 196
8 binstruct 90
9 faker 89
10 gody 67
11 flat 64
12 go-xmlstruct 64
13 go-httpheader 46
14 straf 36
15 newc 24
16 go-traits 22
17 anyflag 15
18 gen 13
19 gobetter 9
20 gonfig 8
21 textra 4

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com