fix godotenv
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"rockhu-bot/local/api"
|
"rockhu-bot/local/api"
|
||||||
cronhu "rockhu-bot/local/utl/cron"
|
cronhu "rockhu-bot/local/utl/cron"
|
||||||
"rockhu-bot/local/utl/db"
|
"rockhu-bot/local/utl/db"
|
||||||
@@ -14,10 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
err := godotenv.Load()
|
godotenv.Load()
|
||||||
if err != nil {
|
|
||||||
log.Fatal("error loading .env file")
|
|
||||||
}
|
|
||||||
di := dig.New()
|
di := dig.New()
|
||||||
|
|
||||||
cronhu.Init(di)
|
cronhu.Init(di)
|
||||||
|
|||||||
Reference in New Issue
Block a user