Last active
April 2, 2022 02:49
-
-
Save thanhpp/3784fe5bf29f167abaf3d7865a17e9a6 to your computer and use it in GitHub Desktop.
kyber_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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