❮ Runes
❯
Strings
examples/strings/strings.go
package main import ( "fmt" ) func main() { text := "Hello World!" fmt.Println(text) fmt.Println(text[1]) fmt.Printf("%c\n", text[1]) }
Hello World! 101 e
package main import ( "fmt" ) func main() { text := "Hello World!" fmt.Println(text) fmt.Println(text[1]) fmt.Printf("%c\n", text[1]) }
Hello World! 101 e