From 3e2260dd8284b5948a6e11a9e6966dc95b9c810c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 9 Dec 2024 06:47:18 +0800 Subject: CAP LS: Distinguish 302 --- cap.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cap.go') diff --git a/cap.go b/cap.go index e06a5fc..06e1f00 100644 --- a/cap.go +++ b/cap.go @@ -7,17 +7,22 @@ import ( var Caps = map[string]string{} var capls string +var capls302 string // Can't be in init() because Caps will be registered with init in the future // and init()s are executed by filename alphabetical order func setupCapls() { capls = "" + capls302 = "" for k, v := range Caps { capls += k + capls302 += k if v != "" { - capls += "=" + v + capls302 += "=" + v } capls += " " + capls302 += " " } capls = strings.TrimSuffix(capls, " ") + capls302 = strings.TrimSuffix(capls302, " ") } -- cgit v1.2.3