Skip to content

Instantly share code, notes, and snippets.

@thanhpp
Last active April 2, 2022 02:49
Show Gist options
  • Save thanhpp/3784fe5bf29f167abaf3d7865a17e9a6 to your computer and use it in GitHub Desktop.
Save thanhpp/3784fe5bf29f167abaf3d7865a17e9a6 to your computer and use it in GitHub Desktop.
kyber_test
package main
import {
"fmt"
"log"
"pkg/appconfig"
"pkg/dbx"
}
func main() {
if err := config.LoadConfig("./config.yml"); err != nil {
log.Fatalf("read config err: %v", err)
}
db, err := dbx.Dial(config.GetDbDSN())
if err != nil {
log.Fatalf("Dial db err: %v", err)
}
defer db.Close()
fmt.Println("connected")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment