From dce03955174abe5ad83c01c930e3bf47fe39d8ce Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Dec 2024 01:23:40 +0000 Subject: Revamp --- caps.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 caps.go (limited to 'caps.go') diff --git a/caps.go b/caps.go new file mode 100644 index 0000000..bd78a9d --- /dev/null +++ b/caps.go @@ -0,0 +1,20 @@ +package main + +import ( + "strings" +) + +var global_cap_ls_response string +var global_cap_ls_302_response string + +// Register a new capability. +// This function is not reentrant and must not be called concurrently. +// It should only be used in the init() functions in source files. +func register_cap(name string, parameters string) { + global_cap_ls_response += name + " " + global_cap_ls_302_response += name + if parameters != "" { + global_cap_ls_302_response += "=" + parameters + } + global_cap_ls_302_response += " " +} -- cgit v1.2.3