Skip to content
Myr

Added some comments to avoid having golint warnings (#1619)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The following comments to vars, conts and method were added to pass `golinter` with 100%. ![captura de pantalla 2018-10-31 a la s 15 23 37](https://user-images.githubusercontent.com/10160626/47819725-faba3780-dd20-11e8-978c-1b3ab7de26ed.png)

authored by root@andrea:~# · committed by Bo-Yi Wu · parent 8e96197 · Browse files · 2 files+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−3 removed

  • other:+7 added−3 removed

2 files+7 added−3 removed

modified:errors.go+4 added-2 removed
22 unmodified lines
23 // ErrorTypePrivate indicates a private error.24 ErrorTypePrivate ErrorType = 1 << 025 // ErrorTypePublic indicates a public error.26 ErrorTypePublic ErrorType = 1 << 127 // ErrorTypeAny indicates other any error.27 // ErrorTypeAny indicates any other error.28 ErrorTypeAny ErrorType = 1<<64 - 129 // ErrorTypeNu indicates any other error.29 ErrorTypeNu = 230 ErrorTypeNu = 231)3233// Error represents a error's specification.34type Error struct {
17 unmodified lines
52 msg.Meta = data53 return msg54}5556// JSON creates a properly formated JSON57func (msg *Error) JSON() interface{} {58 json := H{}59 if msg.Meta != nil {60 value := reflect.ValueOf(msg.Meta)
109 unmodified lines
modified:mode.go+3 added-1 removed
26 unmodified lines
27 releaseCode28 testCode29)3031// DefaultWriter is the default io.Writer used the Gin for debug output and31// DefaultWriter is the default io.Writer used by Gin for debug output and32// middleware output like Logger() or Recovery().33// Note that both Logger and Recovery provides custom ways to configure their34// output io.Writer.35// To support coloring in Windows use:36// import "github.com/mattn/go-colorable"37// gin.DefaultWriter = colorable.NewColorableStdout()38var DefaultWriter io.Writer = os.Stdout3940// DefaultErrorWriter is the default io.Writer used by Gin to debug errors41var DefaultErrorWriter io.Writer = os.Stderr4243var ginMode = debugCode44var modeName = DebugMode
39 unmodified lines