func main() { //我的服务通过etcd注册的,这里怎么集成etcd呢? ctx, cancel := context.WithCancel(context.Background()) defer cancel() srv := api.NewApi() if err := srv.Run(ctx); err != nil { log.Fatal(err) } }
func main() {
}