1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/uname/uname.go
Carlos Alexandro Becker b5cf5d4122
fixed naming
2016-12-30 16:52:45 -02:00

22 lines
390 B
Go

package uname
var mapping = map[string]string{
"darwin": "Darwin",
"linux": "Linux",
"freebsd": "FreeBSD",
"openbsd": "OpenBSD",
"netbsd": "NetBSD",
"windows": "Windows",
"386": "i386",
"amd64": "x86_64",
}
// FromGo translates GOOS and GOARCH to uname compatibles
func FromGo(s string) string {
result := mapping[s]
if result == "" {
result = s
}
return result
}