1 Star 1 Fork 4

TangYuanMaster / go-proxy-bingai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 556 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"adams549659584/go-proxy-bingai/api"
"log"
"net/http"
"os"
"time"
)
func main() {
http.HandleFunc("/sysconf", api.SysConf)
http.HandleFunc("/sydney/", api.Sydney)
http.HandleFunc("/web/", api.WebStatic)
http.HandleFunc("/", api.Index)
port := os.Getenv("PORT")
if port == "" {
port = "8080"
}
addr := ":" + port
log.Println("Starting BingAI Proxy At " + addr)
srv := &http.Server{
Addr: addr,
WriteTimeout: 15 * time.Second,
ReadTimeout: 15 * time.Second,
}
log.Fatal(srv.ListenAndServe())
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/TangYuanMaster/go-proxy-bingai.git
git@gitee.com:TangYuanMaster/go-proxy-bingai.git
TangYuanMaster
go-proxy-bingai
go-proxy-bingai
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891