2017-05-11 00:05:51 -03:00
|
|
|
package ext
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
2017-06-30 14:21:02 -03:00
|
|
|
// For returns the binary extension for the given platform
|
2017-05-11 00:05:51 -03:00
|
|
|
func For(platform string) (ext string) {
|
|
|
|
if strings.HasPrefix(platform, "windows") {
|
|
|
|
ext = ".exe"
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|