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:
commit
89cf2151d2
@ -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 (
|
||||
|
2
main.go
2
main.go
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user