소스 검색

Documentation for FindCommand method

Denis V. Dedkov 9 년 전
부모
커밋
1c145a2465
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      noolite.go

+ 3 - 0
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,