1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

12 lines
242 B
Go
Raw Normal View History

2017-05-11 00:05:51 -03:00
package ext
2017-07-06 19:49:21 -03:00
import "github.com/goreleaser/goreleaser/internal/buildtarget"
2017-05-11 00:05:51 -03:00
2017-06-30 14:21:02 -03:00
// For returns the binary extension for the given platform
2017-12-18 00:53:48 -02:00
func For(target buildtarget.Target) string {
2017-12-17 22:28:24 -02:00
if target.OS == "windows" {
2017-12-17 18:01:58 -02:00
return ".exe"
2017-05-11 00:05:51 -03:00
}
2017-12-17 18:01:58 -02:00
return ""
2017-05-11 00:05:51 -03:00
}