Skip to content

Commit

Permalink
Fixed flag parser...
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmaurice committed Jan 30, 2024
1 parent 19776eb commit 3d7eb14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions satisfactory-metadata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ var (
)

func main() {
// Get parameters
flag.Parse()

psqlconn := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", pgHost, pgPort, pgUser, pgPassword, pgDb)
fmt.Println(psqlconn)

db, err := sql.Open("postgres", psqlconn)

if err != nil {
Expand Down

0 comments on commit 3d7eb14

Please sign in to comment.