Go + MongoDB - extract connection into separate file

前端 未结 0 861
抹茶落季
抹茶落季 2020-11-27 17:14

The following piece of code works well when they are within the same page:-

ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
client, err :=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题