README update

This commit is contained in:
John Guo 2022-01-24 15:50:15 +08:00
parent 221082b967
commit c469d0277f
6 changed files with 14 additions and 19 deletions

View File

@ -15,6 +15,7 @@
# Features
- modular, loosely coupled design
- rich components, out-of-the-box
- automatic codes generating for efficiency
- simple and easy to use, detailed documentation
- interface designed components, with high scalability
- fully supported tracing and error stack feature
@ -26,12 +27,15 @@
- much, much more...ready to explore?
# Installation
```
## primary module
```bash
go get -u -v github.com/gogf/gf/v2
```
suggested using `go.mod`:
```
require github.com/gogf/gf/v2 latest
## cli tool
```bash
go install -g github.com/gogf/gf/cmd/gf/v2
```
# Limitation

View File

@ -9,15 +9,10 @@
1. Latest version
```
go install github.com/gogf/gf/command/gf/v2@master
go install -g github.com/gogf/gf/cmd/gf/v2
```
2. Specified version
```
go install github.com/gogf/gf/command/gf/v2@v2.0.0-beta
```
3. Check installation
2. Check installation
```
gf -v
```

View File

@ -1,6 +1,6 @@
module github.com/gogf/gf/cmd/gf/v2
go 1.14
go 1.15
require (
github.com/denisenkom/go-mssqldb v0.11.0

View File

@ -4,8 +4,8 @@ import (
"context"
"fmt"
"github.com/gogf/gf/cmd/gf/v2/internal/consts"
"github.com/gogf/gf/cmd/gf/v2/internal/utility/mlog"
"github.com/gogf/gf/v2"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gbuild"
@ -32,7 +32,7 @@ func (c cVersion) Index(ctx context.Context, in cVersionInput) (*cVersionOutput,
if info["git"] == "" {
info["git"] = "none"
}
mlog.Printf(`GoFrame CLI Tool %s, https://goframe.org`, consts.Version)
mlog.Printf(`GoFrame CLI Tool %s, https://goframe.org`, gf.VERSION)
gfVersion, err := c.getGFVersionOfCurrentProject()
if err != nil {
gfVersion = err.Error()

View File

@ -1,5 +1 @@
package consts
const (
Version = `v2.0.0-rc`
)

View File

@ -1,4 +1,4 @@
package gf
const VERSION = "v2.0.0-beta"
const VERSION = "v2.0.0-rc2"
const AUTHORS = "john<john@goframe.org>"