main.go 241 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "log"
  4. "github.com/dmitriygnatenko/internal/app"
  5. _ "github.com/go-sql-driver/mysql"
  6. )
  7. func main() {
  8. a, err := app.Init()
  9. if err != nil {
  10. log.Fatal(err)
  11. }
  12. if err = a.Run(); err != nil {
  13. log.Fatal(err)
  14. }
  15. }