github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/shift3.gno (about) 1 package main 2 3 import "fmt" 4 5 type asciiSet [8]uint32 6 7 func main() { 8 var as asciiSet 9 var s string = "cx" 10 var c rune = rune(s[0]) 11 as[c>>5] |= (1 << uint(c&31)) 12 fmt.Println(as) 13 } 14 15 // Output: 16 // [0 0 0 8 0 0 0 0]