From fe3bc44ce21846dd7d52e8f36a479d236f522ca7 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Thu, 25 Jan 2024 11:26:43 +0100 Subject: [PATCH] Add RZ as the location --- README.md | 14 ++++++++++++-- pkg/location/wheel_of_fortune.go | 3 +-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de10922..a22c99d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,18 @@ # spaceapi -# Build/Use +## Develop ``` go generate -go run cmd/server.go +go run cmd/cmd.go ``` + +## Build/Run docker container + +``` +docker compose build +docker compose up +``` + +After that, you can access the API with https://127.0.0.1:8080 + diff --git a/pkg/location/wheel_of_fortune.go b/pkg/location/wheel_of_fortune.go index 9cd15d8..9fe4825 100644 --- a/pkg/location/wheel_of_fortune.go +++ b/pkg/location/wheel_of_fortune.go @@ -11,8 +11,7 @@ type Place struct { func SpinThatWheel() Place { // Cool places to be in Germany :) places := []Place{ - {Latitude: 48.858370, Longitude: 2.294481, Name: "Eifeltower"}, - {Latitude: 27.987850, Longitude: 86.925026, Name: "Mount Everest"}, + {Latitude: 48.119195, Longitude: 11.602183, Name: "ANX84, netcup Colocation im NorthC RZ, Nürnberg"}, } pick := rand.Int() % len(places)