github.com/gopherjs/gopherjs@v1.19.0-beta1.0.20240506212314-27071a8796e4/compiler/natives/src/reflect/example_test.go (about) 1 //go:build js 2 // +build js 3 4 package reflect_test 5 6 import "fmt" 7 8 func ExampleStructOf() { 9 // GopherJS does not implement reflect.addReflectOff needed for this test. 10 // See https://github.com/gopherjs/gopherjs/issues/499 11 12 fmt.Println(`value: &{Height:0.4 Age:2} 13 json: {"height":0.4,"age":2} 14 value: &{Height:1.5 Age:10}`) 15 }