shad-go/lectures/07-sql/alive/ping.go

4 lines
70 B
Go
Raw Normal View History

2020-04-08 19:20:23 +00:00
if err := db.Ping(ctx); err != nil {
// do something with error
}