mirror of
https://github.com/astaxie/beego.git
synced 2025-06-23 03:30:19 +00:00
golink: map range only key stlye
This commit is contained in:
@ -41,7 +41,7 @@ func (ec *errorTestController) Get() {
|
||||
|
||||
func TestErrorCode_01(t *testing.T) {
|
||||
registerDefaultErrorHandler()
|
||||
for k, _ := range ErrorMaps {
|
||||
for k := range ErrorMaps {
|
||||
r, _ := http.NewRequest("GET", "/error?code="+k, nil)
|
||||
w := httptest.NewRecorder()
|
||||
|
||||
|
Reference in New Issue
Block a user