Add RZ as the location
This commit is contained in:
parent
7f5c78a02e
commit
fe3bc44ce2
2 changed files with 13 additions and 4 deletions
14
README.md
14
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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue