mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
21 lines
315 B
Go
21 lines
315 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
var (
|
|
PORT int64 = 10702
|
|
HTTP_RES_STR string = "Hello World"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", request)
|
|
http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", PORT), nil)
|
|
}
|
|
|
|
func request(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte(HTTP_RES_STR))
|
|
}
|