|
|
@ -23,15 +23,16 @@ Here is a possible program to test your function: |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"piscine" |
|
|
|
"piscine" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
fmt.Print(piscine.LoafOfBread("deliciousbread")) |
|
|
|
fmt.Print(piscine.LoafOfBread("deliciousbread")) |
|
|
|
fmt.Print(piscine.LoafOfBread("This is a loaf of bread")) |
|
|
|
fmt.Print(piscine.LoafOfBread("This is a loaf of bread")) |
|
|
|
fmt.Print(piscine.LoafOfBread("loaf")) |
|
|
|
fmt.Print(piscine.LoafOfBread("loaf")) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
And its output: |
|
|
|
And its output: |
|
|
|