github.com/traefik/yaegi@v0.15.1/_test/rune2.go (about) 1 package main 2 3 import "fmt" 4 5 const majorVersion = '2' 6 7 type hashed struct { 8 major byte 9 } 10 11 func main() { 12 fmt.Println(majorVersion) 13 14 p := new(hashed) 15 p.major = majorVersion 16 17 fmt.Println(p) 18 } 19 20 // Output: 21 // 50 22 // &{50}