Some test
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user