okospaceapi/pkg/location/wheel_of_fortune.go
Aaron Fischer a75faf333b
All checks were successful
/ docker-image (push) Successful in 48s
/ deployment (push) Successful in 1s
Adjust the location
2024-01-25 11:38:05 +01:00

19 lines
374 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: 49.3895261, Longitude: 11.1764104, Name: "ANX84, netcup colocation in the NorthC RZ, Nürnberg"},
}
pick := rand.Int() % len(places)
return places[pick]
}