1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/internal/ext/ext.go
Carlos Alexandro Becker 245e888359
chore: cleanup
2017-12-18 00:53:48 -02:00

12 lines
242 B
Go

package ext
import "github.com/goreleaser/goreleaser/internal/buildtarget"
// For returns the binary extension for the given platform
func For(target buildtarget.Target) string {
if target.OS == "windows" {
return ".exe"
}
return ""
}