Go Generator

Open-source Go projects categorized as Generator

Top 23 Go Generator Projects

  • mockery

    A mock code autogenerator for Golang (by vektra)

    Project mention: How do you write/generate mocks for testing? | reddit.com/r/golang | 2022-09-21

    My bread and butter is mockery (https://github.com/vektra/mockery). It has a few shortcomings (a config would be really nice in my project) which should be fixed in v3 (https://github.com/vektra/mockery#v3).

  • terraform-docs

    Generate documentation from Terraform modules in various output formats

    Project mention: Automating release docs for ansible roles | reddit.com/r/ansible | 2022-10-28

    I am looking for a way to automate doc creation and updates for ansible roles. I recently discovered terraform-docs and I am curious if there is something similar for ansible.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • gofakeit

    Random fake data generator written in go

    Project mention: Ask HN: What is the most impactful thing you've ever built? | news.ycombinator.com | 2022-11-18

    Its not much but I have had success with a random data generator package for golang called https://github.com/brianvoe/gofakeit. Its not live changing but hopefully it helps out enough developers.

  • 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

    Project mention: orms in go | reddit.com/r/golang | 2022-11-21

    Have you tried gorm with their generator code?

  • goderive

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

    Project mention: Why GoLang supports null references if they are billion dollar mistake? | reddit.com/r/golang | 2022-09-10

    Now, am I going to do the same with a library like goderive just so I can use FP techniques to get, amongst some other things, less nil checks? No. Probably not. If I wanted to use primarily FP techniques in my code, I would probably be using something else in the first place. Go isn't a great environment for guaranteeing immutability for starters, so anything like that is necessarily going to be an incomplete experience. And in the bargain, my code would, in my opinion at least, be less readable and maintainable.

  • flog

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

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

  • enumer

    A Go tool to auto generate methods for your enums

    Project mention: Does Go not have enums in the sense that I can use them as a type? | reddit.com/r/golang | 2022-10-12

    Define your type as an alias on int and values using iota as others have said, then autogenerate the rest of the functionality from other languages with https://github.com/dmarkham/enumer

  • maintainer

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

    Project mention: Show HN: Become an Open-Source Maintainer | news.ycombinator.com | 2022-08-23
  • xgen

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

    Project mention: Help to improve error details on parsing xml using serde-xml-rs | reddit.com/r/rust | 2022-03-04

    I'am trying to parse a xml file using serde-xml-rs with generated structs by xgen.

  • 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: sqlc patterns in production | reddit.com/r/golang | 2022-08-16

    An alternative is to use a reflection based struct copier library or a codegen struct copier library

  • goverter

    Generate type-safe Go converters by simply defining an interface

  • 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: Are structs and pointers to them deep-copied by default? | reddit.com/r/golang | 2021-12-31
  • compose-generator

    🐳 Easy to use cli tool to generate Docker Compose configurations

  • 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

  • gendesk

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

    Project mention: I made a Linux app for beginners that lets you create Desktop Shortcuts quickly and easily! | reddit.com/r/linux | 2022-02-04


  • cameron

    An avatar generator for Go.

  • faker

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

  • DevLorem

    No more 'Lorem ipsum', get some real quotes or speeches for your free text with this generator!

  • carapace

    command argument completion generator for spf13/cobra

  • easygen

    Easy to use universal code/text generator

    Project mention: Transforming json data with easygen | dev.to | 2021-12-30

    there are lots of other transformation support function already builtin inside easygen, check out the full list with sample usage and results here.

  • zmk-viewer

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

    Project mention: Cli tool to generate zmk layout images | reddit.com/r/golang | 2022-02-21
  • Zigi

    Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

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

Go Generator related posts


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

Project Stars
1 mockery 4,074
2 terraform-docs 3,152
3 gofakeit 2,748
4 hermes 2,557
5 gen 1,452
6 goderive 1,039
7 flog 776
8 enumer 214
9 maintainer 200
10 xgen 200
11 copygen 194
12 goverter 175
13 chyle 146
14 deep-copy 116
15 compose-generator 104
16 querycsv 100
17 gendesk 100
18 cameron 97
19 faker 67
20 DevLorem 62
21 carapace 58
22 easygen 55
23 zmk-viewer 54
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.