golang convert "type []string" to string

You can use strings.Join(arr []string, separator string) string, as in pretty much any other language I know

https://golang.org/pkg/strings/#Join


this is simple example, which You can paste to main function:

  stringArray := []string {"Hello","world","!"}
  justString := strings.Join(stringArray," ")
  fmt.Println(justString)

And link to working example on playground.

Or using very simple function simple function