1
0
Fork 0

Allow to enumerate distro types

master
dump_stack() 4 years ago
parent 7040fb7a0b
commit e91af205f4

@ -93,8 +93,10 @@ const (
Debian
)
var distroTypeStrings = [...]string{"Ubuntu", "CentOS", "Debian"}
func (dt distroType) String() string {
return [...]string{"Ubuntu", "CentOS", "Debian"}[dt]
return distroTypeStrings[dt]
}
func (dt *distroType) UnmarshalTOML(data []byte) (err error) {

Loading…
Cancel
Save