primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Package weather provides tools to help in weather forecast.
|
||||
package weather
|
||||
|
||||
// CurrentCondition represents the current weather condition.
|
||||
var CurrentCondition string
|
||||
// CurrentLocation represents the current location to get weather information.
|
||||
var CurrentLocation string
|
||||
|
||||
// Forecast returns information about the weather in the given location.
|
||||
func Forecast(city, condition string) string {
|
||||
CurrentLocation, CurrentCondition = city, condition
|
||||
return CurrentLocation + " - current weather condition: " + CurrentCondition
|
||||
}
|
||||
Reference in New Issue
Block a user