Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Gelidus edited this page Jan 26, 2016 · 1 revision

About

Gogen aims to create resourceful generator ecosystem for the go language. This means, generators in gogen can depend on each other, leading to more powerful hierarchical approach to code generation.

What does Resourceful mean?

Resourceful means, that generators can provide the results based on the context, given by the resources they have. What more, they can generate resources, and provide them to other generators.

Simple example: Let's say we want to generate DataAccess for two of our entities, which are in M:N relationship. Resources allow generators to first generate three entities (because of the connection entity) and then tell other generators the third entity was created. Thanks to this, the documentation generator knows, that there are three entities, not only two, so it can generate the contents correcly.

Roadmap

Roadmap is located on the Trello

Contents

Guide

  • Overview
  • Setup
  • Resources
  • Configuration files
  • Pipes

Creating generator

  • Generate the generator structure
  • Searching for resources
  • Generating code
  • Generating resources for other generators
Clone this wiki locally