From 83c1ca303c966049d553b86bb804d64cf171984e Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 11 May 2023 22:17:46 +0000 Subject: [PATCH] Add debian code names --- distro/debian/debian.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 distro/debian/debian.go diff --git a/distro/debian/debian.go b/distro/debian/debian.go new file mode 100644 index 0000000..c5f3088 --- /dev/null +++ b/distro/debian/debian.go @@ -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] +}