mirror of
https://gitee.com/johng/gf.git
synced 2024-11-29 18:57:44 +08:00
README update
This commit is contained in:
parent
221082b967
commit
c469d0277f
12
README.MD
12
README.MD
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -1,5 +1 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
Version = `v2.0.0-rc`
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package gf
|
||||
|
||||
const VERSION = "v2.0.0-beta"
|
||||
const VERSION = "v2.0.0-rc2"
|
||||
const AUTHORS = "john<john@goframe.org>"
|
||||
|
Loading…
Reference in New Issue
Block a user