Ejemplo n.º 1
0
func init() {
	gateway.ParseFlags()
	if !gateway.Options.RunSwaggerServer {
		gateway.ValidateFlags()
	}

	gateway.EnsureServerUlimit()
	debug.SetGCPercent(800) // same env GOGC. in golang1.7, we needn't concern about this
}
Ejemplo n.º 2
0
func init() {
	gateway.ParseFlags()
	gateway.ValidateFlags()
}