Go Generation and Generics

Open-source Go projects categorized as Generation and Generics

Top 16 Go Generation and Generic Projects

  • go-linq

    .NET LINQ capabilities in Go

    Project mention: Querying and transforming object graphs in Go | /r/golang | 2023-05-17

    So awhile back, there was a port of Linq https://github.com/ahmetb/go-linq that ended up giving up, since then it has been continued with https://github.com/szmcdull/glinq

  • jennifer

    Jennifer is a code generator for Go

    Project mention: Designing a config API for microservices applications built using Go | dev.to | 2022-11-10

    The design of the wrapper functions meant we couldn’t easily unmarshal the CUE value into the wrapper functions. This meant we needed to generate unmarshalled functions for the config types. We use the excellent Jennifer library by Dave (no really; github.com/dave/jennifer) for generating Go files.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • gen

    Type-driven code generation for Go (by clipperhouse)

  • goderive

    Derives and generates mundane golang functions that you do not want to maintain yourself

    Project mention: Do you generate Clone or Copy methods? | /r/golang | 2023-03-18

    I found https://github.com/awalterschulze/goderive but haven't used anything like it besides mockgen

  • GoWrap

    GoWrap is a command line tool for generating decorators for Go interfaces

    Project mention: Does anyone know a pattern/library for creating editable generated files? | /r/golang | 2023-01-15
  • go-enum

    An enum generator for go

    Project mention: Go vs Rust | /r/golang | 2023-03-06

    I wouldn't write a macro to save a couple of lines, but I would definitely use (not even write, just use) a macro for something like generating enum [de]serialization for both JSON and BSON in one line. Go, even with generics, still has no way of abstracting extremely common patterns like enums without separate generator tools. Clearly someone thought the macro was useful here, but without a macro they had no choice but to write a separate tool.

  • interfaces

    Code generation tools for Go.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • goverter

    Generate type-safe Go converters by simply defining an interface

  • w3

    Package w3 implements a blazing fast and modular Ethereum JSON RPC client with first-class ABI support.

    Project mention: How do multicall to | /r/golang | 2022-06-16

    To call the functions of the contract, I use the library https://github.com/lmittmann/w3 - it eliminates routine abigeneration

  • pkgreflect

    A Go preprocessor for package scoped reflection

  • gotype

    Golang source code parsing, usage like reflect package

  • efaceconv

  • go-xray

    Helpers for making the use of reflection easier

  • glinq

    Go port of DotNet LINQ using generics introduced in Go 1.18

    Project mention: Querying and transforming object graphs in Go | /r/golang | 2023-05-17

    So awhile back, there was a port of Linq https://github.com/ahmetb/go-linq that ended up giving up, since then it has been continued with https://github.com/szmcdull/glinq

  • Anakin

    Codegeneration tool for isomorphic server and mobile Go apps with gRPC & Protobuf. Share code between your backend, Android & iOS app! :sun_with_face:

  • typeregistry

    create type dynamically in Golang

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

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 2023-05-17.

Go Generation and Generics related posts

Index

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

Project Stars
1 go-linq 3,296
2 jennifer 2,873
3 gen 1,416
4 goderive 1,108
5 GoWrap 760
6 go-enum 499
7 interfaces 378
8 goverter 251
9 w3 107
10 pkgreflect 102
11 gotype 53
12 efaceconv 48
13 go-xray 26
14 glinq 18
15 Anakin 17
16 typeregistry 17
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com