Go Agent
tip
安装环境
- Go 版本: 1.12 + 
- Web 框架: Gin 
- ORM library: gorm 
- 其他: httpRouter、http 
安装 Agent
- 将下载的 - dongtai-go-agent-config.yaml放置到项目根目录- 离线部署配置- 在 go.mod 文件中添加 - replace github.com/HXSecurity/DongTai-agent-go => 本地动态路径
- 在项目入口文件引入基础包 - _ "github.com/HXSecurity/DongTai-agent-go/run/base"
- 在项目入口文件引入框架包 例: - _ "github.com/HXSecurity/DongTai-agent-go/run/gin"- 目前支持的框架包- gorm: _ "github.com/HXSecurity/DongTai-agent-go/run/gorm"
- http: _ "github.com/HXSecurity/DongTai-agent-go/run/http"
- httprouter: _ "github.com/HXSecurity/DongTai-agent-go/run/httpRouter"
 
- 执行 - go mod tidy等待同步包
- 添加命令行参数 - -gcflags "all=-N -l"运行项目,例如:- go run -gcflags "all=-N -l" main.go
- 重启应用服务(自动安装跳过此步)