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

12 lines
174 B
Go

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