Some test

This commit is contained in:
2016-06-27 22:31:34 +05:00
parent f7a7cdcdd8
commit f92c234f08

View File

@@ -3,6 +3,7 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"strconv"
"github.com/dedkovd/noolite" "github.com/dedkovd/noolite"
"net/http" "net/http"
) )
@@ -75,7 +76,8 @@ func main() {
if !ok { if !ok {
fmt.Fprintf(w, "Channel param required\n") fmt.Fprintf(w, "Channel param required\n")
} else { } else {
err := n.Switch(c) cn, _ := strconv.Atoi(c[0])
err = n.Switch(cn)
} }
if err != nil { if err != nil {