add static global function & add seocms example
Showing
2 changed files
with
6 additions
and
0 deletions
| ... | @@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0 | ... | @@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0 |
| 38 | ## Use case | 38 | ## Use case |
| 39 | 39 | ||
| 40 | - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) | 40 | - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) |
| 41 | - seocms: [seocms](https://github.com/chinakr/seocms) | ||
| 41 | - CMS: [toropress](https://github.com/insionng/toropress) | 42 | - CMS: [toropress](https://github.com/insionng/toropress) | ... | ... |
| ... | @@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App { | ... | @@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App { |
| 182 | return BeeApp | 182 | return BeeApp |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | func DelStaticPath(url string) *App { | ||
| 186 | delete(StaticDir, url) | ||
| 187 | return BeeApp | ||
| 188 | } | ||
| 189 | |||
| 185 | func Filter(filter http.HandlerFunc) *App { | 190 | func Filter(filter http.HandlerFunc) *App { |
| 186 | BeeApp.Filter(filter) | 191 | BeeApp.Filter(filter) |
| 187 | return BeeApp | 192 | return BeeApp | ... | ... |
-
Please register or sign in to post a comment