summaryrefslogtreecommitdiff
path: root/golang/cmd
diff options
context:
space:
mode:
authorJulien Dessaux2024-07-17 22:26:28 +0200
committerJulien Dessaux2024-07-17 22:26:28 +0200
commitc069de3955da41116934884b0874c71b57bd2cf3 (patch)
tree2650f5dc0621b2eeed9f1c0cd5c471a881df322a /golang/cmd
parent[golang] fixed sql migrations (diff)
downloadspacetraders-c069de3955da41116934884b0874c71b57bd2cf3.tar.gz
spacetraders-c069de3955da41116934884b0874c71b57bd2cf3.tar.bz2
spacetraders-c069de3955da41116934884b0874c71b57bd2cf3.zip
[go] refactoring
Diffstat (limited to 'golang/cmd')
-rw-r--r--golang/cmd/spacetraders/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/golang/cmd/spacetraders/main.go b/golang/cmd/spacetraders/main.go
index 242dee3..84d34ea 100644
--- a/golang/cmd/spacetraders/main.go
+++ b/golang/cmd/spacetraders/main.go
@@ -35,8 +35,8 @@ func main() {
client := api.NewClient(ctx)
defer client.Close()
if err := run(
- db,
client,
+ db,
); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
if err := db.Close(); err != nil {
@@ -47,8 +47,8 @@ func main() {
}
func run(
- db *database.DB,
client *api.Client,
+ db *database.DB,
) error {
// ----- Get token or register ---------------------------------------------
register, err := client.Register("COSMIC", "ADYXAX-GO")