1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 14:10:18 +00:00

add api comments in file beego.go

This commit is contained in:
傅小黑
2013-12-20 19:36:54 +08:00
parent 3f3bf299a6
commit 933e98e4f2
2 changed files with 29 additions and 7 deletions

2
app.go
View File

@ -125,7 +125,7 @@ func (app *App) UrlFor(endpoint string, values ...string) string {
return app.Handlers.UrlFor(endpoint, values...)
}
// [Deprecated]
// [Deprecated] use InsertFilter.
// Filter adds a FilterFunc under pattern condition and named action.
// The actions contains BeforeRouter,AfterStatic,BeforeExec,AfterExec and FinishRouter.
func (app *App) Filter(pattern, action string, filter FilterFunc) *App {