Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Typos fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Sep 16, 2015
1 parent 80a91bf commit a2f5bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type APIError struct {
ErrorCode string `json:"errorCode"`
}

func (e *APIError) Error() string {
func (e APIError) Error() string {
return fmt.Sprintf("%s : %s", e.ErrorCode, e.Description)
}
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
method := r.Method
methodColor := colorForMethod(method)

l.Printf("%s BEGIN %s | %v | %s | %s %s %s %s\n\n",
l.Printf("%s BEGIN %s | %v | %s | %s %s %s %s",
green, reset,
start.Format("2006/01/02 - 15:04:05"),
clientIP,
Expand Down

0 comments on commit a2f5bad

Please sign in to comment.