GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clipperhouse/gen: Type-driven code generation for Go

BranchesTags
Open more actions menu

Latest commit

 

History

662 Commits
662 Commits

Folders and files

NameName
Last commit message
Last commit date
benchmarks
benchmarks
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TYPEWRITERS.md
TYPEWRITERS.md
 
 
_gen.go
_gen.go
 
 
add.go
add.go
 
 
add_test.go
add_test.go
 
 
config.go
config.go
 
 
execute.go
execute.go
 
 
get.go
get.go
 
 
get_test.go
get_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
help.go
help.go
 
 
help_test.go
help_test.go
 
 
imports.go
imports.go
 
 
list.go
list.go
 
 
list_test.go
list_test.go
 
 
main.go
main.go
 
 
main_test.go
main_test.go
 
 
pkg.go
pkg.go
 
 
run.go
run.go
 
 
run_test.go
run_test.go
 
 
test.bat
test.bat
 
 
test.sh
test.sh
 
 
watch.go
watch.go
 
 

Repository files navigation

What’s this?

gen is a code-generation tool for Go. It’s intended to offer generics-like functionality on your types. Out of the box, it offers offers LINQ/underscore-inspired methods.

It also offers third-party, runtime extensibility via typewriters.

Introduction and docs…

Changelog

Hey, a video

‼️

This project is deprecated. It won't work with recent versions of Go, and...Go now has proper generics! Treat this project as a historical curiosity.

Typewriters

There is a list of open-source typewriters in TYPEWRITERS.md. Please add your own.

Contributing

There are three big parts of gen.

gen

This repository. The gen package is primarily the command-line interface. Most of the work is done by the typewriter package, and individual typewriters.

typewriter

The typewriter package is where most of the parsing, type evaluation and code generation architecture lives.

typewriters

Typewriters are where templates and logic live for generating code. Here’s set, which will make a lovely Set container for your type. Here’s slice, which provides the built-in LINQ-like functionality. Here’s stringer, a fork of Rob Pike’s tool.

Third-party typewriters are added easily by the end user. You publish them as Go packages for import. Learn more...

We’d love to see typewriter packages for things like strongly-typed JSON serialization, Queues, Pools or other containers. Anything “of T” is a candidate for a typewriter.

About

Type-driven code generation for Go

clipperhouse.com/gen/overview/

Topics

code-generationgenericsgo

Resources

Readme
License
Activity

Stars

1.4k stars

Watchers

32 watching

Forks

87 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.