splits and joins strs in go
package main
//splits and joins strs
import "fmt"
import s "strings"
func main() {
fmt.Print(joinstr(splitstr("hello how are you today", " ")))
}
//splits strings be a delimeter
func splitstr(input, delim string) []string{
return s.Split(input, delim)
}
//joins a string of arrays together
func joinstr(input []string) string{
return s.Join(input, "")
}