Quick actions

cmd+k|ctrl+k

Navigation

Languages

Strings / Parse text / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:12:44Z

Updated

2019-03-26T10:12:44Z

package main

import (
	"fmt"
	"strings"
)

func main() {
	s := "this,. is,. a,. string"
	a := strings.Split(s, ",.")
	fmt.Printf("a: %#v\n", a)
}
INFO