gen is an attempt to bring some generics-like functionality to Go. It uses type annotations to add “of T” functionality to your packages. gen generates code for your types, at development time, using the command line. It is not an import; the generated source becomes part of your package and takes no external dependencies. Typewriters are where templates and logic live for generating code. Here’s set, which will make a lovely Set container for your type. Third-party typewriters are added easily by the end user. You publish them as Go packages for import. This repository. The gen package is primarily the command-line interface. Most of the work is done by the typewriter package, and individual typewriters.

Features

  • There is a list of open-source typewriters
  • Introduction and docs
  • gen is a code-generation tool for Go
  • Intended to offer generics-like functionality on your types
  • Out of the box, it offers offers LINQ/underscore-inspired methods
  • The typewriter package is where most of the parsing

Project Samples

Project Activity

See All Activity >

Categories

Code Generators

License

MIT License

Follow gen Go

gen Go Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gen Go!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

2023-02-03