Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frioux/geneg
https://github.com/frioux/geneg
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/frioux/geneg
- Owner: frioux
- Created: 2018-11-17T19:15:17.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T18:03:20.000Z (over 4 years ago)
- Last Synced: 2024-10-22T12:01:16.600Z (2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example package using `go generate`.
Run `go build` and then the built binary. Note the error. Now run
`go generate`. Note the new file in the repo. Feel free to look at it's
contents. Run `go build` again and then run the built binary.By the way, setting a string like this with `go generate` is probably overkill,
since `go build -ldflags "-X 'main.compiledAt=whatever'"` would do that more
simply, but there are times when that isn't an option, or when the structure
being generated is more complex than a simple string.