Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created March 23, 2015 11:53
Show Gist options
  • Save lukaszkorecki/46d6150a7733df859cd2 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/46d6150a7733df859cd2 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"strings"
)
func main() {
r := strings.Split("", ",")
fmt.Printf("%T\n%T\n", r, r[0])
}
# Output:
[]string
string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment