Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
1521842d
Commit
1521842d
authored
Jun 25, 2013
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add static global function & add seocms example
parent
b04813e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+1
-0
beego.go
beego.go
+5
-0
No files found.
README.md
View file @
1521842d
...
@@ -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
## Use case
## Use case
-
Displaying API documentation:
[
gowalker
](
https://github.com/Unknwon/gowalker
)
-
Displaying API documentation:
[
gowalker
](
https://github.com/Unknwon/gowalker
)
-
seocms:
[
seocms
](
https://github.com/chinakr/seocms
)
-
CMS:
[
toropress
](
https://github.com/insionng/toropress
)
-
CMS:
[
toropress
](
https://github.com/insionng/toropress
)
beego.go
View file @
1521842d
...
@@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App {
...
@@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App {
return
BeeApp
return
BeeApp
}
}
func
DelStaticPath
(
url
string
)
*
App
{
delete
(
StaticDir
,
url
)
return
BeeApp
}
func
Filter
(
filter
http
.
HandlerFunc
)
*
App
{
func
Filter
(
filter
http
.
HandlerFunc
)
*
App
{
BeeApp
.
Filter
(
filter
)
BeeApp
.
Filter
(
filter
)
return
BeeApp
return
BeeApp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment