mirror of
https://github.com/gin-gonic/gin.git
synced 2025-07-04 11:23:20 +08:00
Added some comments to avoid having golint warnings (#1619)
The following comments to vars, conts and method were added to pass `golinter` with 100%. 
This commit is contained in:
@ -24,9 +24,10 @@ const (
|
||||
ErrorTypePrivate ErrorType = 1 << 0
|
||||
// ErrorTypePublic indicates a public error.
|
||||
ErrorTypePublic ErrorType = 1 << 1
|
||||
// ErrorTypeAny indicates other any error.
|
||||
// ErrorTypeAny indicates any other error.
|
||||
ErrorTypeAny ErrorType = 1<<64 - 1
|
||||
ErrorTypeNu = 2
|
||||
// ErrorTypeNu indicates any other error.
|
||||
ErrorTypeNu = 2
|
||||
)
|
||||
|
||||
// Error represents a error's specification.
|
||||
@ -52,6 +53,7 @@ func (msg *Error) SetMeta(data interface{}) *Error {
|
||||
return msg
|
||||
}
|
||||
|
||||
// JSON creates a properly formated JSON
|
||||
func (msg *Error) JSON() interface{} {
|
||||
json := H{}
|
||||
if msg.Meta != nil {
|
||||
|
Reference in New Issue
Block a user