From 1c145a246515ee87ca94d698e0a3ce9e0976fa75 Mon Sep 17 00:00:00 2001 From: "Denis V. Dedkov" Date: Sun, 24 Jul 2016 12:03:24 +0500 Subject: [PATCH] Documentation for FindCommand method --- noolite.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/noolite.go b/noolite.go index 3c3accd..0436f08 100644 --- a/noolite.go +++ b/noolite.go @@ -107,6 +107,9 @@ func DefaultNooliteAdapter() (*NooliteAdapter, error) { // Default constructor return NewNooliteAdapter(0, 2, 2) } +// Return NooliteAdapter method for string command +// +// Set command must be separately processed because have different signature func (n *NooliteAdapter) FindCommand(command string) (func(int) error, bool) { m := map[string]func(int) error { "on": n.On,