github.com/marianogappa/goreleaser@v0.26.2-0.20170715090149-96acd0a9fc46/internal/ext/ext.go (about) 1 package ext 2 3 import "github.com/goreleaser/goreleaser/internal/buildtarget" 4 5 // For returns the binary extension for the given platform 6 func For(target buildtarget.Target) (ext string) { 7 if target.OS == "windows" { 8 ext = ".exe" 9 } 10 return 11 }