mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
12 lines
244 B
Go
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
|
|
}
|