https://github.com/tomoncle/golang.org
go语言关于golang.org包的常用依赖管理.
https://github.com/tomoncle/golang.org
Last synced: 3 months ago
JSON representation
go语言关于golang.org包的常用依赖管理.
- Host: GitHub
- URL: https://github.com/tomoncle/golang.org
- Owner: tomoncle
- License: mit
- Created: 2018-04-16T06:34:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T05:25:42.000Z (about 6 years ago)
- Last Synced: 2025-01-08T10:46:01.303Z (4 months ago)
- Language: Go
- Homepage: https://tomoncle.github.io/golang.org/.
- Size: 2.83 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golang.org
go语言关于golang.org包的常用依赖## 如何使用?
* 常见异常 1:
```
/usr/local/go/bin/src/github.com/sirupsen/logrus/terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
/usr/local/go/src/golang.org/x/crypto/ssh/terminal (from $GOROOT)
/home/liyuanjun/GolandProjects/src/golang.org/x/crypto/ssh/terminal (from $GOPATH)
/home/liyuanjun/src/golang.org/x/crypto/ssh/terminal
/usr/local/go/bin/src/golang.org/x/crypto/ssh/terminal
```* 常见异常 2 :
```
..\src\github.com\sirupsen\logrus\terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
C:\Go\src\golang.org\x\crypto\ssh\terminal (from $GOROOT)
D:\WorkSpaces_ide\go_space\src\golang.org\x\crypto\ssh\terminal (from $GOPATH)
..\src\github.com\prometheus\common\log\eventlog_formatter.go:22:2: cannot find package "golang.org/x/sys/windows/svc/eventlog" in any of:
C:\Go\src\golang.org\x\sys\windows\svc\eventlog (from $GOROOT)
D:\WorkSpaces_ide\go_space\src\golang.org\x\sys\windows\svc\eventlog (from $GOPATH)
```* 解决
```
$ cd $GOROOT/src
$ git clone --depth=1 https://github.com/tomoncle/golang.org.git golang.org
$ rm -rf $GOROOT/src/golang.org/.git
```## 备注
> 所有的包(模块),都在 https://github.com/golang 社区中存在,clone 到 `$GOROOT/golang.org/x` 包下即可.