We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code:
package kata import ( "fmt" "strings" ) func Catalog(s string, article string) string { fmt.Println(strings.ReplaceAll("oink oink oink", "oink", "moo")) return "hi" }
Expected result: Test fails but prints "moo moo moo".
Actual result: BUILD fails with STDERR:
./solution.go:10:15: undefined: strings.ReplaceAll
This works on play.golang.org (with the exception that the package/function is "main").
The text was updated successfully, but these errors were encountered:
That's because Codewars uses Go 1.10 as it says next the language name. ReplaceAll was added in 1.12.
ReplaceAll
You can request a new version by opening an issue on https://github.com/Codewars/codewars-runner-cli
Sorry, something went wrong.
No branches or pull requests
Example code:
Expected result: Test fails but prints "moo moo moo".
Actual result: BUILD fails with STDERR:
codewarrior/kata
./solution.go:10:15: undefined: strings.ReplaceAll
This works on play.golang.org (with the exception that the package/function is "main").
The text was updated successfully, but these errors were encountered: