Created
January 15, 2020 02:12
-
-
Save monkrus/ca583d941b9f5bcfd5eddb175ea21761 to your computer and use it in GitHub Desktop.
Strings in Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| xi := []int{4, 7, 3, 42, 99, 18, 16, 56, 12} | |
| xs := []string{"James", "Q", "M", "Moneypenny", "Dr. No"} | |
| fmt.Println(xi) | |
| fmt.Println(xs) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment