ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] > [github](https://github.com/fvbock/endless) ## example ``` package main import ( "log" "net/http" "os" "github.com/fvbock/endless" "github.com/gorilla/mux" ) func handler(w http.ResponseWriter, r *http.Request) { w.Write([]byte("WORLD!")) } func main() { mux1 := mux.NewRouter() mux1.HandleFunc("/hello", handler). Methods("GET") err := endless.ListenAndServe("localhost:4242", mux1) if err != nil { log.Println(err) } log.Println("Server on 4242 stopped") os.Exit(0) } ```