Skip to content

Commit

Permalink
fixed go version and removed .env loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBakhmat committed Jan 15, 2024
1 parent 42b99cd commit e0ea7b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module johnbakhmat.tech/pinned

go 1.21.6
go 1.21

require (
github.com/Khan/genqlient v0.6.0
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ import (

"github.com/gofiber/fiber/v3"
"johnbakhmat.tech/pinned/graphql"
"github.com/joho/godotenv"
)

func main() {
err := godotenv.Load(".env")
if err != nil {
log.Fatal("Error loading .env file")
}

portStr := os.Getenv("PORT")
if portStr == "" {
portStr = "7000"
Expand Down

0 comments on commit e0ea7b0

Please sign in to comment.