获取源码
食用方式
1.安装依赖
配置环境变量CHAT_APP_KEY
或者更换你的appkey
headers := map[string]string{
"Content-Type": "application/json",
// "Authorization": "Bearer 你的key",
}
cd chat
go mod tidy
2.运行
go run main.go
3.访问
http://localhost:8080/static/index.html
4.打包
GOOS=linux GOARCH=amd64 go build -o chat
5.服务器运行
nohup ./chat &
评论