go 环境搭建, GO 程序 xsec-ip-database-master 是恶意 IP 和域名库, go build main.go 编译报 loglevel
时间: 2020-08-21来源:V2EX
前景提要
[ [email protected] xsec-ip-database-master]# go 版本 go1.12.5 gcc 版本 gcc-4.8.5-39.el7.x86_64 linux 版本 centos7
[ [email protected] xsec-ip-database-master]# go build main.go
xsec-evil-ips/models
../src/xsec-evil-ips/models/models.go:87:27: cannot use " github.com/go-xorm/core ".LOG_OFF (type " github.com/go-xorm/core ".LogLevel) as type " xorm.io/core ".LogLevel in argument to Engine.Logger().SetLev el[ [email protected] xsec-ip-database-master]# [ [email protected] xsec-ip-database-master]# [ [email protected] xsec-ip-database-master]# go env
GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build533909917=/tmp/go-build -gno-record-gcc-switches"
[ [email protected] xsec-ip-database-master]# cd /root/go/src/ github.com/go-xorm/core/ [ [email protected] core]# [ [email protected] core]# [ [email protected] core]# ls -lh total 148K -rw-r--r--. 1 root root 29 Aug 17 00:00 benchmark.sh -rw-r--r--. 1 root root 2.2K Aug 17 00:00 cache.go -rw-r--r--. 1 root root 3.9K Aug 17 00:00 column.go -rw-r--r--. 1 root root 398 Aug 17 00:00 converstion.go -rw-r--r--. 1 root root 5.8K Aug 17 00:00 db.go -rw-r--r--. 1 root root 13K Aug 17 00:00 db_test.go -rw-r--r--. 1 root root 7.1K Aug 17 00:00 dialect.go -rw-r--r--. 1 root root 673 Aug 17 00:00 driver.go -rw-r--r--. 1 root root 334 Aug 17 00:00 error.go -rw-r--r--. 1 root root 1.7K Aug 17 00:00 filter.go -rw-r--r--. 1 root root 157 Aug 17 00:00 go.mod -rw-r--r--. 1 root root 803 Aug 17 00:00 go.sum -rw-r--r--. 1 root root 741 Aug 17 00:00 ilogger.go -rw-r--r--. 1 root root 1.5K Aug 17 00:00 index.go -rw-r--r--. 1 root root 1.5K Aug 17 00:00 LICENSE -rw-r--r--. 1 root root 5.3K Aug 17 00:00 mapper.go -rw-r--r--. 1 root root 1.3K Aug 17 00:00 mapper_test.go -rw-r--r--. 1 root root 588 Aug 17 00:00 pk.go -rw-r--r--. 1 root root 650 Aug 17 00:00 pk_test.go -rw-r--r--. 1 root root 2.4K Aug 17 00:00 README.md -rw-r--r--. 1 root root 6.8K Aug 17 00:00 rows.go -rw-r--r--. 1 root root 1.3K Aug 17 00:00 scan.go -rw-r--r--. 1 root root 4.5K Aug 17 00:00 stmt.go -rw-r--r--. 1 root root 3.2K Aug 17 00:00 table.go -rw-r--r--. 1 root root 2.2K Aug 17 00:00 table_test.go -rw-r--r--. 1 root root 4.1K Aug 17 00:00 tx.go -rw-r--r--. 1 root root 7.7K Aug 17 00:00 type.go [ [email protected] core]#

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行