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 2e0e05134d
refactoring buildtarget
2017-07-06 19:49:21 -03:00

12 lines
244 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) (ext string) {
if target.OS == "windows" {
ext = ".exe"
}
return
}