├── .gitignore ├── go.mod ├── whatever.go └── .goreleaser.yml /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | dist 3 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/whatever/forever 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /whatever.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Println("x_x") 7 | } 8 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | before: 2 | hooks: 3 | - go mod tidy 4 | - go generate ./... 5 | builds: 6 | - 7 | id: whatever 8 | main: "./whatever.go" 9 | binary: whatever 10 | ldflags: 11 | -X main.Date={{.CommitDate}} 12 | mod_timestamp: "{{ .CommitTimestamp }}" 13 | checksum: 14 | name_template: 'checksums.txt' 15 | snapshot: 16 | name_template: "{{ .Tag }}-snapshot" 17 | --------------------------------------------------------------------------------