appending to list separated by comma golang code example Example: join slice to string golang fmt.Println(strings.Join(reg[:], ","))