BasePath is not longer an exported field, but a method instead

This commit is contained in:
Manu Mtz-Almeida
2015-07-08 04:27:23 +02:00
parent 0873992f38
commit fc5e355724
4 changed files with 13 additions and 9 deletions

2
gin.go
View File

@ -94,7 +94,7 @@ func New() *Engine {
engine := &Engine{
RouterGroup: RouterGroup{
Handlers: nil,
BasePath: "/",
basePath: "/",
root: true,
},
RedirectTrailingSlash: true,