golang私有仓库配置

私有仓库引用配置

go env -w  GOPRIVATE=git.hauwie.com
git config --global --add url.ssh://git@git.hauwie.com:7033.insteadof https://git.hauwie.com

日志库引用,go.mod文件中增加

replace slog => git.hauwie.com/slog.git v1.0.1
posted @ 2024-01-17 17:09  jiftle  阅读(39)  评论(0编辑  收藏  举报