Go Codegen

Open-source Go projects categorized as Codegen

Top 14 Go Codegen Projects

  • wire

    Compile-time Dependency Injection for Go

    Project mention: Config for production and mocking (db connections, http parsers etc) | reddit.com/r/golang | 2023-02-23

    If you have such a complex and deep dependency graph, and you don't want to manually maintain it, you could use some DI library to handle that for you. Something like https://github.com/google/wire for small-medium size stuff, or https://github.com/uber-go/fx for larger scale, more enterprise projects.

  • gqlgen

    go generate based graphql server library

    Project mention: Golang tech stack | reddit.com/r/golang | 2023-03-12

    Gqlgen if I need GraphQL

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

  • moq

    Interface mocking tool for go generate

    Project mention: Is gomock still maintained and recommended? | reddit.com/r/golang | 2023-03-06

    ``` https://github.com/matryer/moq

  • genqlient

    a truly type-safe Go GraphQL client

    Project mention: How to build a Snowflake API? | dev.to | 2023-01-17

    An example of a Snowflake API request using Go. This example uses the Go standard library, so it doesn’t require additional dependencies; however, in production, you could use a library like shurcooL/graphql or Khan/genqlient for stronger typing.

  • vtprotobuf

    A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2

  • oto

    Go driven rpc code generation tool for right now. (by pacedotdev)

    Project mention: Generating OpenAPI 3.0 specs from code - what's working for me... | reddit.com/r/golang | 2023-03-17

    For new projects, I can probably use https://github.com/pacedotdev/oto and stick with an RPC style, but I've got lots of REST services that include URL params and GET requests to document, hence writing this.

  • ogen

    OpenAPI v3 code generator for go

    Project mention: How to OpenAPI? | reddit.com/r/golang | 2023-02-08

    But also this project https://github.com/ogen-go/ogen It worth keeping an eye on.

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

  • interfaces

    Code generation tools for Go.

  • kyaml2go

    K8s Go client code generator from Kubernetes resource yamls

  • sqlgen

    A tool to generate bun, gorm, sql, sqlx and xorm sql code. (by anqiansong)

    Project mention: How do you improve development efficiency? | reddit.com/r/golang | 2022-08-25

    Finally, I wrote a tool a while ago https://github.com/anqiansong/sqlgen,it can help developers quickly generate gorm,xorm,sqlx,bun,sql code gorm,xorm,sqlx,bun,sql code that supports generation from sql files and database links, for example check out https://github. com/anqiansong/sqlgen/tree/main/example, if it can help you, please give me a star.

  • githubevents

    GitHub webhook events toolset for Go :rocket:

    Project mention: github API webhook reciever | reddit.com/r/golang | 2023-01-13

    A while ago I wrote a module which might be interesting for your use case. All it does is wrapping go-github and adding some generated handlers https://github.com/cbrgm/githubevents

  • gomarvin

    Generate custom endpoints & typesafe fetch functions for Go REST servers

    Project mention: Gomarvin - generate custom boilerplate / controllers for REST servers | reddit.com/r/golang | 2022-07-17

    Source -> https://github.com/tompston/gomarvin

  • revgen

    Speed up go:generate by auto detecting code changes

  • 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-03-27.

Go Codegen related posts

Index

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

Project Stars
1 wire 10,324
2 gqlgen 8,743
3 moq 1,523
4 genqlient 788
5 vtprotobuf 624
6 oto 609
7 ogen 453
8 interfaces 371
9 kyaml2go 282
10 shortlink 67
11 sqlgen 58
12 githubevents 40
13 gomarvin 38
14 revgen 25
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com