1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge branch 'go-generate' of https://github.com/retgits/wtf into retgits-go-generate

This commit is contained in:
Chris Cummer 2019-01-28 17:06:29 -08:00
commit 89cf2151d2
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
// The TextWidget generator needs one environment variable, called WTF_WIDGET_NAME, which will
// be the name of the TextWidget it generates. If the variable hasn't been set, the generator
// will use "NewTextWidget". On Linux and macOS the command can be run as
// 'WTF_WIDGET_NAME=MyNewWidget go generate text'.
// 'WTF_WIDGET_NAME=MyNewWidget go generate -run=text'.
package main
import (

View File

@ -1,7 +1,7 @@
package main
// Generators
// To generate the skeelton for a new TextWidget use 'WTF_WIDGET_NAME=bla go generate text'
// To generate the skeleton for a new TextWidget use 'WTF_WIDGET_NAME=MySuperAwesomeWidget go generate -run=text
//go:generate -command text go run generator/textwidget.go
//go:generate text