replace beego.me with beego.vip
This commit is contained in:
@@ -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}}`
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user