https://github.com/n8tbyte/go-build-with-flags
go-build-with-flags
https://github.com/n8tbyte/go-build-with-flags
Last synced: 5 days ago
JSON representation
go-build-with-flags
- Host: GitHub
- URL: https://github.com/n8tbyte/go-build-with-flags
- Owner: n8tbyte
- Created: 2025-05-05T16:08:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T18:10:57.000Z (about 1 year ago)
- Last Synced: 2026-02-27T21:35:15.526Z (4 months ago)
- Language: Go
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-build-with-flags
```go
go build -ldflags="-s -w -X main.version=0.1 -X main.commit=$(git rev-parse HEAD) -X main.date=$(date +%Y-%m-%dT%H:%M:%S%z)" -o hello.exe .
```