1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-07 07:10:11 +02:00
goreleaser/uname/uname.go
Carlos Alexandro Becker d5d9a4cc5c
zip
2016-12-28 22:53:56 -02:00

20 lines
302 B
Go

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