Exemple #1
0
func test() {
	logger.SetLog(true, true, true)

	// load configs
	iniConfigs := config.ReadConfigIni("config.ini")

	LoadConfigs(&iniConfigs)

	Send("hello world")
}
Exemple #2
0
func main() {
	// now go can use all cores to do stuff.
	runtime.GOMAXPROCS(runtime.NumCPU() - 1)

	// load configs
	iniConfigs := config.ReadConfigIni("config.ini")

	// start http server
	http.LoadConfigs(&iniConfigs)
	http.HttpReceiver()
}