|
|
@ -1,4 +1,4 @@ |
|
|
|
# stringtointarray |
|
|
|
## stringtointarray |
|
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
|
@ -19,12 +19,15 @@ Here is a possible program to test your function: |
|
|
|
```go |
|
|
|
```go |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
import "fmt" |
|
|
|
import ( |
|
|
|
|
|
|
|
"fmt" |
|
|
|
|
|
|
|
"piscine" |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
fmt.Println(StringToIntArray("A quick brown fox jumps over the lazy dog")) |
|
|
|
fmt.Println(piscine.StringToIntArray("A quick brown fox jumps over the lazy dog")) |
|
|
|
fmt.Println(StringToIntArray("Converted this string into an int")) |
|
|
|
fmt.Println(piscine.StringToIntArray("Converted this string into an int")) |
|
|
|
fmt.Println(StringToIntArray("hello THERE")) |
|
|
|
fmt.Println(piscine.StringToIntArray("hello THERE")) |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|