example_generators/

directory
v0.0.0-...-3b3435a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT

README

Example generators

Toy examples showing implementation of generators using gopkg.

Each generator contains their own examples which can be used to tryout each generator; e.g.

cd enumstringergen/example_single_enum
go generate
  • enumstringergen - Implements the classic stringer generator (with the addition of generating tests for the implementation).

  • interfacegen - Given an interface, stamps out an empty struct which implements that interface with stubbed methods (along with tests).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL