38 Star 131 Fork 27

adai.design / homehub

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
app.go 881 Bytes
Copy Edit Web IDE Raw Blame History
adai.design authored 2019-10-13 09:08 . 更新PCB原理图文件
package main
import (
"adai.design/homemaster/client"
"adai.design/homemaster/coordinator"
"adai.design/homemaster/log"
"adai.design/homemaster/modules"
"adai.design/homemaster/server"
)
func main() {
err := modules.Start()
coordinator.StartCoordinator()
if err != nil {
log.Fatal(err)
}
defer modules.Stop()
defer coordinator.StopCoordinator()
client.Start()
server.Start()
//for {
// select {
// case <-time.After(time.Second * 2):
// var stat runtime.MemStats
// runtime.ReadMemStats(&stat)
// log.Printf("alloc(%0.2fM) total(%0.2fM) sys(%0.2fM) lookups(%d) maollocs(%0.2fM) frees(%0.2fM)\n",
// float32(stat.Alloc)/1024/1024,
// float32(stat.TotalAlloc)/1024/1024,
// float32(stat.Sys)/1024/1024,
// stat.Lookups,
// float32(stat.Mallocs)/1024/1024,
// float32(stat.Frees)/1024/1024)
// }
//}
select {}
log.Info("the end")
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/adaidesigner/homehub.git
git@gitee.com:adaidesigner/homehub.git
adaidesigner
homehub
homehub
master

Search