|
|
@ -9,7 +9,7 @@ Write a function `rot14` that returns the string within the parameter but transf |
|
|
|
### Expected function |
|
|
|
### Expected function |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```go |
|
|
|
func rot14(str string) string { |
|
|
|
func Rot14(str string) string { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
@ -22,11 +22,12 @@ Here is a possible [program](TODO-LINK) to test your function : |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
|
|
|
|
piscine ".." |
|
|
|
"github.com/01-edu/z01" |
|
|
|
"github.com/01-edu/z01" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
result := rot14("Hello How are You") |
|
|
|
result := piscine.Rot14("Hello How are You") |
|
|
|
arrayRune := []rune(result) |
|
|
|
arrayRune := []rune(result) |
|
|
|
|
|
|
|
|
|
|
|
for _, s := range arrayRune { |
|
|
|
for _, s := range arrayRune { |
|
|
|