1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/internal/ext/ext.go

12 lines
244 B
Go
Raw Normal View History

2017-05-11 05:05:51 +02:00
package ext
2017-07-07 00:49:21 +02:00
import "github.com/goreleaser/goreleaser/internal/buildtarget"
2017-05-11 05:05:51 +02:00
2017-06-30 19:21:02 +02:00
// For returns the binary extension for the given platform
2017-07-07 00:49:21 +02:00
func For(target buildtarget.Target) (ext string) {
if target.OS == "windows" {
2017-05-11 05:05:51 +02:00
ext = ".exe"
}
return
}