Exemple #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
}
Exemple #2
0
func init() {
	gateway.ParseFlags()
	gateway.ValidateFlags()
}