gen

module
v0.0.0-...-7ec19b4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: MIT

README

Templates for Gen

This repository contains a set of templates that can be substitute by gen. command line tool. Presently, it contains the following templates:

Requirments

Installation

$ go get clipperhouse.github.io/gen
$ gen add github.com/svett/gen/stack

Usage

// +gen * stack
type Student struct {
	FirstName string
	LastName  string
	BirthDate time.Time
}
stack := &StudentStack{}
stack.Push(&Student{FirstName: "John", LastName: "Smith"})
$ gen

Author

Svett Ralchev - http://blog.ralch.com

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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