add go version prerequisite and debug warning (#1394)

* add go version prerequisite and debug warning

* merge duplicate content

* remove duplicate content
This commit is contained in:
田欧
2018-06-26 18:56:43 +08:00
committed by Bo-Yi Wu
parent 6c6d97ba2e
commit c00f21ff23
3 changed files with 64 additions and 54 deletions

View File

@ -47,6 +47,9 @@ func debugPrint(format string, values ...interface{}) {
}
func debugPrintWARNINGDefault() {
debugPrint(`[WARNING] Now Gin requires Go 1.6 or later and Go 1.7 will be required soon.
`)
debugPrint(`[WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
`)