Quick actions

cmd+k|ctrl+k

Navigation

Languages

Basic types / Characters and runes / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:02:41Z

Updated

2019-03-26T10:02:41Z

package main

import "fmt"

func main() {
	s := "str"
	for i := 0; i < len(s); i++ {
		c := s[i]
		fmt.Printf("Byte at index %d is '%c' (0x%x)\n", i, c, c)
	}
}
INFO