Skip to content

Commit

Permalink
movedir
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 9, 2023
1 parent 270d68b commit d34d94d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ type Seed struct {
}

func main() {
err := godotenv.Load(".env")
defer db.C()
if err := godotenv.Load(".env"); err != nil {
panic(err)
}
db.Open()
defer db.C()
data := &Seed{}
b, _ := os.ReadFile("./data/nt-tokyo.yaml")
err = yaml.Unmarshal(b, data)
if err != nil {
if err := yaml.Unmarshal(b, data); err != nil {
panic(err)
}

Expand Down

0 comments on commit d34d94d

Please sign in to comment.