17 lines
273 B
Go
17 lines
273 B
Go
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")
|
|
}
|