Update beego pkg paths
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
// Package config is used to parse config.
|
||||
// Usage:
|
||||
// import "github.com/beego/beego/v2/config"
|
||||
// import "github.com/beego/beego/v2/core/config"
|
||||
// Examples.
|
||||
//
|
||||
// cnf, err := config.NewConfig("ini", "config.conf")
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/beego/beego/v2/config/xml"
|
||||
// "github.com/beego/beego/v2/config"
|
||||
// _ "github.com/beego/beego/v2/core/config/xml"
|
||||
// "github.com/beego/beego/v2/core/config"
|
||||
// )
|
||||
//
|
||||
// cnf, err := config.NewConfig("xml", "config.xml")
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/beego/beego/v2/config/yaml"
|
||||
// "github.com/beego/beego/v2/config"
|
||||
// _ "github.com/beego/beego/v2/core/config/yaml"
|
||||
// "github.com/beego/beego/v2/core/config"
|
||||
// )
|
||||
//
|
||||
// cnf, err := config.NewConfig("yaml", "config.yaml")
|
||||
|
||||
@@ -4,7 +4,7 @@ logs is a Go logs manager. It can use many logs adapters. The repo is inspired b
|
||||
|
||||
## How to install?
|
||||
|
||||
go get github.com/beego/beego/v2/logs
|
||||
go get github.com/beego/beego/v2/core/logs
|
||||
|
||||
## What adapters are supported?
|
||||
|
||||
@@ -16,7 +16,7 @@ First you must import it
|
||||
|
||||
```golang
|
||||
import (
|
||||
"github.com/beego/beego/v2/logs"
|
||||
"github.com/beego/beego/v2/core/logs"
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ func NewES() logs.Logger {
|
||||
// please import this package
|
||||
// usually means that you can import this package in your main package
|
||||
// for example, anonymous:
|
||||
// import _ "github.com/beego/beego/v2/logs/es"
|
||||
// import _ "github.com/beego/beego/v2/core/logs/es"
|
||||
type esLogger struct {
|
||||
*elasticsearch.Client
|
||||
DSN string `json:"dsn"`
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Package logs provide a general log interface
|
||||
// Usage:
|
||||
//
|
||||
// import "github.com/beego/beego/v2/logs"
|
||||
// import "github.com/beego/beego/v2/core/logs"
|
||||
//
|
||||
// log := NewLogger(10000)
|
||||
// log.SetLogger("console", "")
|
||||
|
||||
@@ -7,18 +7,18 @@ validation is a form validation for a data validation and error collecting using
|
||||
|
||||
Install:
|
||||
|
||||
go get github.com/beego/beego/v2/validation
|
||||
go get github.com/beego/beego/v2/core/validation
|
||||
|
||||
Test:
|
||||
|
||||
go test github.com/beego/beego/v2/validation
|
||||
go test github.com/beego/beego/v2/core/validation
|
||||
|
||||
## Example
|
||||
|
||||
Direct Use:
|
||||
|
||||
import (
|
||||
"github.com/beego/beego/v2/validation"
|
||||
"github.com/beego/beego/v2/core/validation"
|
||||
"log"
|
||||
)
|
||||
|
||||
@@ -49,7 +49,7 @@ Direct Use:
|
||||
Struct Tag Use:
|
||||
|
||||
import (
|
||||
"github.com/beego/beego/v2/validation"
|
||||
"github.com/beego/beego/v2/core/validation"
|
||||
)
|
||||
|
||||
// validation function follow with "valid" tag
|
||||
@@ -81,7 +81,7 @@ Struct Tag Use:
|
||||
Use custom function:
|
||||
|
||||
import (
|
||||
"github.com/beego/beego/v2/validation"
|
||||
"github.com/beego/beego/v2/core/validation"
|
||||
)
|
||||
|
||||
type user struct {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Package validation for validations
|
||||
//
|
||||
// import (
|
||||
// "github.com/beego/beego/v2/validation"
|
||||
// "github.com/beego/beego/v2/core/validation"
|
||||
// "log"
|
||||
// )
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user