shad-go/lectures/01-basics/scope/scope.go
2020-02-20 17:40:51 +03:00

11 lines
165 B
Go

package main
import "fmt"
func main() {
x := "hello"
for _, x := range x {
x := x + 'A' - 'a'
fmt.Printf("%c", x) // "HELLO" (one letter per iteration)
}
}