-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
50 lines (41 loc) · 1.15 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package main
import (
annalyn "exercism/go/annalyns-infiltration"
cars "exercism/go/cars-assemble"
greeting "exercism/go/hello-world"
weather "exercism/go/weather-forecast"
"exercism/go/lasagna"
"fmt"
"time"
)
func exercismLasagna() {
fmt.Println(lasagna.OvenTime)
fmt.Println(lasagna.RemainingOvenTime(30))
fmt.Println(lasagna.PreparationTime(2))
fmt.Println(lasagna.ElapsedTime(30, 2))
}
func exercismHelloWorld() {
fmt.Println(greeting.HelloWorld())
}
func exercismAnnalynsInfiltration() {
fmt.Println(annalyn.CanFastAttack(true))
fmt.Println(annalyn.CanSpy(true, true, true))
fmt.Println(annalyn.CanSignalPrisoner(true, true))
fmt.Println(annalyn.CanFreePrisoner(true, true, true, true))
}
func exercismWeatherForecast() {
fmt.Println(weather.Forecast("Hortolândia", "Sunny"))
}
func exercismCarsAssemble() {
fmt.Println(cars.CalculateWorkingCarsPerHour(221, 80))
fmt.Println(cars.CalculateWorkingCarsPerMinute(221, 80))
fmt.Println(cars.CalculateCost(221))
}
func main() {
// exercismHelloWorld()
// exercismLasagna()
// exercismAnnalynsInfiltration()
// exercismCarsAssemble()
// exercismWeatherForecast()
fmt.Println(time.Now().Local())
}