https://github.com/go-playground/generate
:runner:runs go generate recursively on a specified path or environment variable and can filter by regex
https://github.com/go-playground/generate
generate
Last synced: 7 months ago
JSON representation
:runner:runs go generate recursively on a specified path or environment variable and can filter by regex
- Host: GitHub
- URL: https://github.com/go-playground/generate
- Owner: go-playground
- License: mit
- Created: 2015-11-15T01:52:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T00:20:55.000Z (almost 9 years ago)
- Last Synced: 2024-10-25T05:25:31.640Z (about 1 year ago)
- Topics: generate
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 30
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go-cn - generate - playground/generate) [![godoc][D]](https://godoc.org/github.com/go-playground/generate) (公用事业公司 / 实用程序/Miscellaneous)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex - ★ 12 (Utilities)
- awesome-go-plus - generate - runs go generate recursively on a specified path or environment variable and can filter by regex.  (Utilities / Utility/Miscellaneous)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- fucking-awesome-go - :octocat: generate - runs go generate recursively on a specified path or environment variable and can filter by regex. :star: 1 :fork_and_knife: 1 (Utilities / Advanced Console UIs)
- fucking-awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-go - generate - | - | - | (Utilities / HTTP Clients)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-go-zh - generate
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-go-extra - generate - 11-15T01:52:04Z|2017-01-10T00:20:55Z| (Utilities / Fail injection)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. - :arrow_down:0 - :star:1 (Utilities / HTTP Clients)
- awesome-go-with-stars - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Utility/Miscellaneous)
- awesome-Char - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / HTTP Clients)
- awesome-go-cn - generate - playground/generate) [![godoc][D]](https://godoc.org/github.com/go-playground/generate) (公用事业公司 / 实用程序/Miscellaneous)
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / HTTP Clients)
- awesome-go-cn - generate
- awesome-go-cn - generate
- awesome-go - generate - runs go generate recursively on a specified path or environment variable and can filter by regex. (Utilities / Advanced Console UIs)
README
Package generate
================
[](https://semaphoreci.com/joeybloggs/generate)
[](http://goreportcard.com/report/go-playground/generate)
[](https://godoc.org/github.com/go-playground/generate)
Package generate runs go generate recursively on a specified path or environment
variable like $GOPATH and can filter by regex
#### Why would I use it?
When ready to compile your application, you may need to do a bunch of setup,
run some scripts or even embed static resources and instead of programming
that all into a build script just add all that into //go:generate statements
then run this to recursively go through and run all the setup for you.
#### Why was it created?
To be the best friend of [https://github.com/go-playground/statics](https://github.com/go-playground/statics) which
automatically embeds the go:generate statement that embeds the static
resources, but it could be used for anything.
Installation
------------
Use go get.
go get github.com/go-playground/generate
or to update
go get -u github.com/go-playground/generate
Then import the generate package into your own code.
import "github.com/go-playground/generate"
Usage and documentation
------
Please see https://godoc.org/github.com/go-playground/generate for detailed usage docs.
#### Example Usage
* NOTE: this would be from a bash prompt, hence the escaping
generate -i=$GOPATH -ignore=/\\. -match=/github.com/MyOrganizationOrUser
run generate -h for all options
License
------
Distributed under MIT License, please see license file in code for more details.