Created
November 28, 2017 01:05
-
-
Save xealgo/aac4be0e9f276634a67d7ca9287b5a81 to your computer and use it in GitHub Desktop.
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
type Request struct { | |
ID int `json:"id"` | |
... | |
} | |
func (req *Request) Log() map[string]interface{} { | |
return map[string]interface{ | |
"id": req.ID, | |
... | |
} | |
} | |
..... | |
logservice.Error(req) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment