Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fizzday committed Sep 10, 2019
1 parent a7f1e1c commit 822fb9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ The module diagram is as follows:
![gorose.2.0.jpg](https://i.loli.net/2019/08/06/7R2GlbwUiFKOrNP.jpg)

## installation
- go.mod
```bash
require github.com/gohouse/gorose v2.1.1
require github.com/gohouse/gorose/v2 v2.1.2
```
you should use it like `import "github.com/gohouse/gorose/v2"`

- docker
```bash
docker run -it --rm ababy/gorose sh -c "go run main.go"
```
> docker image: [ababy/gorose](https://cloud.docker.com/u/ababy/repository/docker/ababy/gorose), The docker image contains the packages and runtime environment necessary for gorose, [view `Dockerfile`](https://github.com/docker-box/gorose/blob/master/master/golang/Dockerfile)
- without version control
- go get
```bash
go get -u github.com/gohouse/gorose/v2
```
Expand Down
5 changes: 3 additions & 2 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ gorose 2.0 采用模块化架构, 通过interface的api通信,严格的上层依
## 安装
- go.mod
```bash
require github.com/gohouse/gorose v2.1.1
require github.com/gohouse/gorose/v2 v2.1.2
```
使用的时候必须`import "github.com/gohouse/gorose/v2"`方可正常使用

- docker
```bash
docker run -it --rm ababy/gorose sh -c "go run main.go"
```
> docker 镜像: [ababy/gorose](https://cloud.docker.com/u/ababy/repository/docker/ababy/gorose), docker镜像包含了gorose所必须的包和运行环境, [查看`Dockerfile`](https://github.com/docker-box/gorose/blob/master/master/golang/Dockerfile)
- 不使用版本控制
- go get
```bash
go get -u github.com/gohouse/gorose/v2
```
Expand Down

0 comments on commit 822fb9a

Please sign in to comment.