Merge branch 'master' of https://gogs.inhome.blapointe.com/local/echo-server
commit
f87cd725c3
|
|
@ -0,0 +1,12 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.ListenAndServe(":9090", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "%s %s\n", r.Method, r.URL)
|
||||
}))
|
||||
}
|
||||
Loading…
Reference in New Issue