replace beego.me with beego.vip

This commit is contained in:
Deng Ming
2021-11-29 21:29:29 +08:00
parent 1fe29f3787
commit 3e886f71ca
52 changed files with 79 additions and 79 deletions

View File

@@ -21,10 +21,10 @@ var indexTpl = `
For detail usage please check our document:
</p>
<p>
<a target="_blank" href="http://beego.me/docs/module/admin.md">Toolbox</a>
<a target="_blank" href="http://beego.vip/docs/module/admin.md">Toolbox</a>
</p>
<p>
<a target="_blank" href="http://beego.me/docs/advantage/monitor.md">Live Monitor</a>
<a target="_blank" href="http://beego.vip/docs/advantage/monitor.md">Live Monitor</a>
</p>
{{.Content}}
{{end}}`

View File

@@ -19,7 +19,7 @@
//
// ctx := context.Context{Request:req,ResponseWriter:rw}
//
// more docs http://beego.me/docs/module/context.md
// more docs http://beego.vip/docs/module/context.md
package context
import (

View File

@@ -12,6 +12,6 @@ beego is inspired by Tornado, Sinatra and Flask with the added benefit of some G
beego.Run()
}
more information: http://beego.me
more information: http://beego.vip
*/
package web

View File

@@ -48,7 +48,7 @@ func NewNamespace(prefix string, params ...LinkNamespace) *Namespace {
// if cond return true can run this namespace, else can't
// usage:
// ns.Cond(func (ctx *context.Context) bool{
// if ctx.Input.Domain() == "api.beego.me" {
// if ctx.Input.Domain() == "api.beego.vip" {
// return true
// }
// return false

View File

@@ -174,7 +174,7 @@ func TestNamespaceCond(t *testing.T) {
ns := NewNamespace("/v2")
ns.Cond(func(ctx *context.Context) bool {
return ctx.Input.Domain() == "beego.me"
return ctx.Input.Domain() == "beego.vip"
}).
AutoRouter(&TestController{})
AddNamespace(ns)

View File

@@ -29,7 +29,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package couchbase
import (

View File

@@ -29,7 +29,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package memcache
import (

View File

@@ -37,7 +37,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package mysql
import (

View File

@@ -47,7 +47,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package postgres
import (

View File

@@ -29,7 +29,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package redis
import (

View File

@@ -29,7 +29,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package redis_cluster
import (

View File

@@ -24,7 +24,7 @@
// go globalSessions.GC()
// }
//
// more docs: http://beego.me/docs/module/session.md
// more docs: http://beego.vip/docs/module/session.md
package session
import (

View File

@@ -242,7 +242,7 @@ func Htmlunquote(text string) string {
// /login?next=/
// /user/John%20Doe
//
// more detail http://beego.me/docs/mvc/controller/urlbuilding.md
// more detail http://beego.vip/docs/mvc/controller/urlbuilding.md
func URLFor(endpoint string, values ...interface{}) string {
return BeeApp.Handlers.URLFor(endpoint, values...)
}