mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
chore: docs formatting
This commit is contained in:
parent
ac206f8442
commit
f06bab0ef9
@ -50,12 +50,12 @@ dist: another-folder-that-is-not-dist
|
||||
|
||||
## Using the `main.version`
|
||||
|
||||
Default wise GoReleaser sets three _ldflags_:
|
||||
Default wise GoReleaser sets three _ldflags_:
|
||||
|
||||
- `main.version`: Current Git tag (the `v` prefix is stripped) or the name of
|
||||
the snapshot, if you're using the `--snapshot` flag
|
||||
- `main.commit`: Current git commit SHA
|
||||
- `main.date`: Date according [RFC3339](https://golang.org/pkg/time/#pkg-constants)
|
||||
* `main.version`: Current Git tag (the `v` prefix is stripped) or the name of
|
||||
the snapshot, if you're using the `--snapshot` flag
|
||||
* `main.commit`: Current git commit SHA
|
||||
* `main.date`: Date according [RFC3339](https://golang.org/pkg/time/#pkg-constants)
|
||||
|
||||
You can use it in your `main.go` file:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user