diff --git a/main.go b/main.go index 099f1ba..135d317 100644 --- a/main.go +++ b/main.go @@ -36,8 +36,8 @@ func main() { fmt.Println(aemetRequest.Base.Nombre) fmt.Println(aemetRequest.Base.Prediccion.Dia[0].Fecha) - fmt.Println(aemetRequest.Base.Prediccion.Dia[0].Temperatura.Maxima) - fmt.Println(aemetRequest.Base.Prediccion.Dia[0].Temperatura.Minima) + fmt.Printf("Temperatura máxima: %v°C\n", aemetRequest.Base.Prediccion.Dia[0].Temperatura.Maxima) + fmt.Printf("Temperatura mínima: %v°C\n", aemetRequest.Base.Prediccion.Dia[0].Temperatura.Minima) } func getJSON() string {