mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-01 22:33:30 +08:00
18 lines
262 B
Go
18 lines
262 B
Go
package consts
|
|
|
|
import "strings"
|
|
|
|
type OSType string
|
|
|
|
func (o OSType) Name() string {
|
|
if strings.HasPrefix(string(o), "Windows") {
|
|
return "Windows"
|
|
}
|
|
if strings.HasPrefix(string(o), "Darwin") {
|
|
return "MacOS"
|
|
}
|
|
return string(o)
|
|
}
|
|
|
|
type OSRelease string
|