Go Generator

Open-source Go projects categorized as Generator

Top 23 Go Generator Projects

  • mockery

    A mock code autogenerator for Go (by vektra)

    Project mention: go-ecommerce-microservices: A practical e-commerce microservices, built with cqrs, event sourcing, vertical slice architecture, event-driven architecture. | /r/golang | 2023-08-26

    Some of the features: - ✅ Using Vertical Slice Architecture as a high level architecture - ✅ Using Event Driven Architecture on top of RabbitMQ Message Broker with a custom [Event Bus](pkg/messaging/bus/) - ✅ Using Event Sourcing in Audit Based services like [Orders Service](services/orders/) - ✅ Using CQRS Pattern and Mediator Patternon top of Go-MediatR library - ✅ Using Dependency Injection and Inversion of Controlon top of uber-go/fx library - ✅ Using RESTFul api with Echo framework and using swagger with swaggo/swag library - ✅ Using Postgres and EventStoreDB to write databases with fully supports transactions(ACID) - ✅ Using MongoDB and Elastic Search for read databases (NOSQL) - ✅ Using OpenTelemetry for collection Distributed Tracing with using Jaeger and Zipkin - ✅ Using OpenTelemetry for collection Metrics with using Prometheus and Grafana - ✅ Using Unit Test for testing small units with mocking dependent classes and using Mockery for mocking dependencies - ✅ Using End2End Test and Integration Test for testing features with all of their real dependeinces using docker containers (cleanup tests) and testcontainers-go library

  • gofakeit

    Random fake data generator written in go

    Project mention: I've made my first PR. | /r/cscareerquestions | 2023-11-03
  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

  • terraform-docs

    Generate documentation from Terraform modules in various output formats

    Project mention: GitHub Actions - Automated Terraform-docs | dev.to | 2023-09-16

    Earlier this year I wrote about the challenges I faced creating a Terraform module. I mentioned then that I was leveraging terraform-docs and GitHub Actions to automate documentation, but a full workflow walkthrough was out of that post's scope.

  • hermes

    Golang package that generates clean, responsive HTML e-mails for sending transactional mail (by matcornic)

  • gen

    Gen: Friendly & Safer GORM powered by Code Generation

  • 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

  • flog

    :tophat: A fake log generator for common log formats (by mingrammer)

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

  • goverter

    Generate type-safe Go converters by simply defining an interface

  • enumer

    A Go tool to auto generate methods for your enums (by dmarkham)

  • copygen

    Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.

    Project mention: The Icculus Microgrant is giving out 250 dollar grants to open source projects, please brag about your project(s) in this thread so I can see them! | /r/programming | 2023-03-03

    Copygen is a type-based code generator for the Go programming language. Copygen allows developers to generate type-to-type copy functions out-of-the-box without reflection (why?), but it can also be used to generate code. As an example, disgo is a performant, secure, and thread-safe Go Discord API Wrapper that uses Copygen with dasgo to achieve feature completion.

  • xgen

    XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator (by xuri)

  • maintainer

    :octocat: :man_technologist: :whale: Generate personal daily reports or summary, AUTHORS, CONTRIBUTING, CHANGELOG and so on for GitHub user or repository.

  • compose-generator

    🐳 Easy to use cli tool to generate Docker Compose configurations

  • carapace

    command argument completion generator for spf13/cobra

    Project mention: ZSH-like autocompletion | /r/Nushell | 2023-05-10
  • chyle

    Changelog generator : use a git repository and various data sources and publish the result on external services

  • deep-copy

    Deep copy generator

    Project mention: A little bit faster way to deep copy in golang | /r/golang | 2023-04-25

    I wonder if it's faster than generated code from https://github.com/globusdigital/deep-copy

  • gendesk

    :herb: Generate .desktop files and download .png icons by specifying a minimum of information

  • zmk-viewer

    cli tool to generate preview images from a zmk .keymap file

  • cameron

    An avatar generator for Go.

  • querycsv

    QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

  • faker

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

  • sqlgen

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

  • fname

    Generate random, human-friendly names.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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-11-03.

Go Generator related posts

Index

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

Project Stars
1 mockery 5,467
2 gofakeit 4,094
3 terraform-docs 3,907
4 hermes 2,749
5 gen 2,010
6 goderive 1,151
7 flog 1,004
8 goverter 412
9 enumer 355
10 copygen 317
11 xgen 283
12 maintainer 202
13 compose-generator 171
14 carapace 164
15 chyle 154
16 deep-copy 144
17 gendesk 121
18 zmk-viewer 114
19 cameron 110
20 querycsv 101
21 faker 87
22 sqlgen 73
23 fname 71
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com