-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from maxzhang1985/dev
v2 ,set all router and mvc settings for application builder.
- Loading branch information
Showing
5 changed files
with
89 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package YoyoGo | ||
|
||
func (self *HostBuilder) UseFastHttpByAddr(addr string) *HostBuilder { | ||
self.server = NewFastHttp(addr) | ||
return self | ||
} | ||
|
||
func (self *HostBuilder) UseFastHttp() *HostBuilder { | ||
self.server = NewFastHttp("") | ||
return self | ||
} | ||
|
||
func (self *HostBuilder) UseHttpByAddr(addr string) *HostBuilder { | ||
self.server = DefaultHttpServer(addr) | ||
return self | ||
} | ||
|
||
func (self *HostBuilder) UseHttp() *HostBuilder { | ||
self.server = DefaultHttpServer("") | ||
return self | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters