okospaceapi/pkg/location/wheel_of_fortune.go
Aaron Fischer fe3bc44ce2
All checks were successful
/ docker-image (push) Successful in 1m25s
/ deployment (push) Successful in 0s
Add RZ as the location
2024-01-25 11:26:43 +01:00

20 lines
368 B
Go

package location
import "math/rand"
type Place struct {
Latitude float64
Longitude float64
Name string
}
func SpinThatWheel() Place {
// Cool places to be in Germany :)
places := []Place{
{Latitude: 48.119195, Longitude: 11.602183, Name: "ANX84, netcup Colocation im NorthC RZ, Nürnberg"},
}
pick := rand.Int() % len(places)
return places[pick]
}