jennifer
gen
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jennifer
-
How to minimize RAM usage during Go binary compilation
We have a repo/library called fasten-sources which is made up of mostly generated code (using dave/jennifer)
-
Golang’s best-kept secret: ‘executable examples’
Check out my https://github.com/dave/rebecca package for a neat way of building readme docs by embedding Go docs and examples. It generates the readme for https://github.com/dave/jennifer (see https://github.com/dave/jennifer/blob/master/README.md.tpl).
-
Designing a config API for microservices applications built using Go
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.
-
Simple code generator tools to explore inner workings of?
I've used https://github.com/dave/jennifer in the past, and been very happy with it.
-
How to choose a golang template rending engine for my project?
If specifically for generating Go code, I would suggest you take a look at Jennifer.
-
Boilerplate for experienced devs
I just spent a few hours writing a crapload of boilerplate code generation code with jennifer, if that helps any.
gen
-
orms in go
Have you tried gorm with their generator code?
- Gen: Friendly & Safer GORM powered by Code Generation
- Gen: Friendly and Safer GORM Powered by Code Generation
-
GORM is a bad idea?
You can use gorm and gorm-gen https://github.com/go-gorm/gen together
-
Sql generator but for SQLite
Maybe this is what you want? Saw it posted here earlier today: https://github.com/go-gorm/gen
What are some alternatives?
Anakin - Codegeneration tool for isomorphic server and mobile Go apps with gRPC & Protobuf. Share code between your backend, Android & iOS app! :sun_with_face:
golang-gin-realworld-example-app - Exemplary real world application built with Golang + Gin
gen - Type-driven code generation for Go
GORM - The fantastic ORM library for Golang, aims to be developer friendly
go-linq - .NET LINQ capabilities in Go
go-mybatis - ORM Library for go.Have Powerful Features like transaction nesting, Optimistic Lock,Logical deletion and more. like mybatis for go golang
efaceconv
SQLBoiler - Generate a Go ORM tailored to your database schema.
interfaces - Code generation tools for Go.
goverter - Generate type-safe Go converters by simply defining an interface
pkgreflect - A Go preprocessor for package scoped reflection