go项目引用本地包
如果服务器不能连接外网,只能通过调用本地包来调用
module goProject go 1.20 require ( github.com/stretchr/testify v1.8.1 // indirect golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect ) require github.com/sirupsen/logrus v1.9.3 replace ( github.com/sirupsen/logrus v1.9.3 => ../lib/logrus@v1.9.3 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 => ../lib/sys@v0.0.0-20220715151400-c0bba94af5f8 )