Go Structs

Open-source Go projects categorized as Structs Edit details
Related topics: #Golang #Go #Struct #Tool #Generics

Top 7 Go Struct Projects

  • gomodifytags

    Go tool to modify struct field tags

    Project mention: Improving the code from the official Go RESTful API tutorial | news.ycombinator.com | 2021-11-17

    I suspect it's because Go's general philosophy is that it's better to be verbose and explicit (than terse and magical). Probably falls under "clear is better than clever" from Rob Pike's Go Proverbs: http://go-proverbs.github.io/

    I think if this feature was added, it would not be with struct tags, but with an Encoder.SetFieldTransform(json.SnakeCase) or similar setting.

    That might be quite a nice feature, actually. You could provide your own function to transform names when marshaling, and for unmarshaling it would strip punctuation and match case insensitively (because it's hard to do the reverse transform, for example should user_id go to UserId or UserID, and if the latter, how does the transform know?).

    In any case, it seems like an issue was opened proposing something like that a couple of years ago (https://github.com/golang/go/issues/23027), and Russ Cox responded that the JSON package is basically done, but you could either fork it and add the feature, or use a tool that modifies struct tags like https://github.com/fatih/gomodifytags

  • dynamic-struct

    Golang package for editing struct's fields during runtime and mapping structs to other structs.

    Project mention: Dynamic Structs | reddit.com/r/golang | 2022-04-07

    This is your package: github.com/ompluscator/dynamic-struct

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • gopium

    Gopium 🌺: Smart Go Structures Optimizer and Manager

    Project mention: Gopium: Smart Go Structures Optimizer and Manager | news.ycombinator.com | 2022-02-12
  • go-httpheader

    A Go library for encoding structs into Header fields.

  • straf

    Convert Golang Struct To GraphQL Object On The Fly

  • CONFLATE

    Library providing routines to merge and validate JSON, YAML and/or TOML files

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

    Project mention: GitHub - structsdev/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. | reddit.com/r/golang | 2022-01-19
  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

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). The latest post mention was on 2022-04-07.

Go Structs related posts

Index

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

Project Stars
1 gomodifytags 1,833
2 dynamic-struct 475
3 gopium 174
4 go-httpheader 40
5 straf 32
6 CONFLATE 27
7 gen 12
Find remote jobs at our new job board 99remotejobs.com. There are 5 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Download talent.io’s Tech Salary Report
Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io
www.talent.io