Skip to content

Commit

Permalink
Version 0.3.13
Browse files Browse the repository at this point in the history
* HttpContext增加ViewC、WriteStringC、WriteBlobC、WriteJsonC、WriteJsonBlobC方法,以支持传入指定HttpCode
* 调整Redirect(code int, targetUrl string) 为 Redirect(code int, targetUrl string) error,增加error返回值
* DotWeb增加SetLogger方法,支持接入第三方Logger,需实现logger.AppLog接口
* DotWeb增加SetConfig方法,支持配置与启动分离
* 新增 example/logger 目录
* 2017-05-16 09:00
  • Loading branch information
devfeel committed May 16, 2017
1 parent 2b6efc3 commit 0258acf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ type Node struct {

//Use registers a middleware
func (n *Node) Use(m ...Middleware) *Node {
if len(m) <= 0 {
return n
}
step := len(n.middlewares) - 1
for i := range m {
if m[i] != nil {
Expand Down

0 comments on commit 0258acf

Please sign in to comment.