1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/uname/uname.go
Carlos Alexandro Becker d9c8c5f499
golint
2016-12-30 12:41:59 -02:00

21 lines
367 B
Go

package uname
var mapping = map[string]string{
"darwin": "Darwin",
"linux": "Linux",
"freebsd": "FreeBSD",
"openbsd": "OpenBSD",
"netbsd": "NetBSD",
"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
}