From d810d12355873d3eaf61ed3f7f0ae52db06c2c96 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 08:45:13 +0800 Subject: Add basic command handling --- cmd.go | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cmd.go (limited to 'cmd.go') diff --git a/cmd.go b/cmd.go new file mode 100644 index 0000000..6d60f4f --- /dev/null +++ b/cmd.go @@ -0,0 +1,5 @@ +package main + +var commandHandlers = map[string](func(RMsg, *Client) (error)){} + +/* Maybe we should make command handlers return their values for easier labelled-reply? */ -- cgit v1.2.3