summaryrefslogtreecommitdiff
path: root/exitcodes.go
diff options
context:
space:
mode:
Diffstat (limited to 'exitcodes.go')
-rw-r--r--exitcodes.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/exitcodes.go b/exitcodes.go
deleted file mode 100644
index 18e3e19..0000000
--- a/exitcodes.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-const (
- ok = 0
- warning = 1
- critical = 2
- unknown = 3
-)
-
-func codeToString(state int) string {
- switch state {
- case 0:
- return "OK"
- case 1:
- return "WARNING"
- case 2:
- return "CRITICAL"
- default:
- return "UNKNOWN"
- }
-}