Menu
Coddy logo textTech

String Tokenizer

Lesson 17 of 24 in Coddy's Golang Challenges - Level 1 course.

challenge icon

Challenge

Easy

We have a string like this:

"cooddypythongolang"

Write a function that tokenizes a string into words or sentences based on specified delimiters. The function should take the string and delimiter as parameters and return the tokens.

For example, if the delimiter is 6, the result will be: “cooddypythongolang” => “cooddy”, “python”, "golang"

Try it yourself

func insertSpace()  {

}

All lessons in Golang Challenges - Level 1