Fix module path and remote
This commit is contained in:
parent
8601031005
commit
e021b01d89
10
README.md
10
README.md
@ -4,18 +4,18 @@ Shared Go module for ChatApp services.
|
||||
|
||||
Module path:
|
||||
|
||||
`43.132.178.96/hy/ChatAppCommon.git`
|
||||
`gitea.haiyihy.com/hy/ChatAppCommon`
|
||||
|
||||
Install:
|
||||
|
||||
```bash
|
||||
go env -w GOPRIVATE=43.132.178.96
|
||||
git config --global url."git@43.132.178.96:".insteadOf "https://43.132.178.96/"
|
||||
go get 43.132.178.96/hy/ChatAppCommon.git@v0.1.0
|
||||
go env -w GOPRIVATE=gitea.haiyihy.com
|
||||
git config --global url."ssh://git@gitea.haiyihy.com/".insteadOf "https://gitea.haiyihy.com/"
|
||||
go get gitea.haiyihy.com/hy/ChatAppCommon@v0.1.0
|
||||
```
|
||||
|
||||
Import:
|
||||
|
||||
```go
|
||||
import common "43.132.178.96/hy/ChatAppCommon.git"
|
||||
import common "gitea.haiyihy.com/hy/ChatAppCommon"
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user