nertamid/rest/main.go

17 lines
273 B
Go
Raw Normal View History

2020-05-11 19:05:09 +00:00
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/scanners", httpGetScanners)
log.Fatal(http.ListenAndServe(":8000", nil))
}
func httpGetScanners(res http.ResponseWriter, req *http.Request) {
fmt.Fprint(res, "Here will be scanners")
}