2024-01-24 11:45:19 +01:00
|
|
|
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{
|
2024-01-25 11:26:43 +01:00
|
|
|
{Latitude: 48.119195, Longitude: 11.602183, Name: "ANX84, netcup Colocation im NorthC RZ, Nürnberg"},
|
2024-01-24 11:45:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pick := rand.Int() % len(places)
|
|
|
|
return places[pick]
|
|
|
|
}
|