15 lines
221 B
Go
15 lines
221 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
http.HandleFunc("/test", func (w http.ResponseWriter, r *http.Request) {
|
||
|
fmt.Fprintf(w, "test")
|
||
|
})
|
||
|
|
||
|
http.ListenAndServe(":8080", nil)
|
||
|
}
|