Add debian code names
This commit is contained in:
parent
ad0a3706cb
commit
83c1ca303c
25
distro/debian/debian.go
Normal file
25
distro/debian/debian.go
Normal file
@ -0,0 +1,25 @@
|
||||
package debian
|
||||
|
||||
type CodeName int
|
||||
|
||||
const (
|
||||
Wheezy CodeName = iota
|
||||
Jessie
|
||||
Stretch
|
||||
Buster
|
||||
Bullseye
|
||||
Bookworm
|
||||
)
|
||||
|
||||
var CodeNameStrings = [...]string{
|
||||
"Wheezy",
|
||||
"Jessie",
|
||||
"Stretch",
|
||||
"Buster",
|
||||
"Bullseye",
|
||||
"Bookworm",
|
||||
}
|
||||
|
||||
func (cn CodeName) String() string {
|
||||
return CodeNameStrings[cn]
|
||||
}
|
Loading…
Reference in New Issue
Block a user