mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 07:04:08 +00:00
16 lines
264 B
Go
16 lines
264 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func hello(w http.ResponseWriter, req *http.Request) {
|
|
fmt.Fprintf(w, "hello from GO!!!\n")
|
|
}
|
|
|
|
func main() {
|
|
print("listening on 0.0.0.0:8090\n")
|
|
http.HandleFunc("/hello", hello)
|
|
http.ListenAndServe(":8090", nil)
|
|
}
|