Skip to content

itnotebooks/fireye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fireye

环境

Go: 1.16 IDE: VS Code

配置GO Proxy

解决依赖下载慢的问题

临时配置
go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct

永久配置(Mac,Linux)

vim ~/.bash_profile

export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct

编译

执行完 go build 后,会在当前目录下生成 fireye 执行文件

cd fireye
go build

配置文件

默认程序会执行当前目录下的 config.yaml 配置文件,如果是放在其它地方的,可以使用 -c 去指定

./fireye -c /path/config.yaml