Debian Codegraph @

compiler/natives/src/reflect/example_test.go

raw
1 // +build js
2
3 package reflect_test
4
5 import "fmt"
6
7 func ExampleStructOf() {
8 // GopherJS does not implement reflect.addReflectOff needed for this test.
9 // See https://github.com/gopherjs/gopherjs/issues/499
10
11 fmt.Println(`value: &{Height:0.4 Age:2}
12 json: {"height":0.4,"age":2}
13 value: &{Height:1.5 Age:10}`)
14 }