diff --git a/tools/autolevel.go b/tools/autolevel.go new file mode 100644 index 0000000..c5b85b6 --- /dev/null +++ b/tools/autolevel.go @@ -0,0 +1,18 @@ +package tools + +type Autolower struct{} + +func (Autolower)MonitorLevelP(level string)(l string) { + switch level { + case "P0": + return "p1" + case "P1": + return "p2" + case "P2": + return "p3" + case "P3": + return "p4" + default: + return level + } +} \ No newline at end of file