code: func SetMode(value string) {
  	switch value {
  	case DebugMode, "":
  		ginMode = debugCode
  	case ReleaseMode:
  		ginMode = releaseCode
  	case TestMode:
  		ginMode = testCode
  	default:
  		panic("gin mode unknown: " + value)
  	}
  	if value == "" {
  		value = DebugMode
  	}
  	modeName = value
  }
docs: // SetMode sets gin mode according to input string.