You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gosuv/vendor/github.com/gopherjs/gopherjs/compiler/natives/src/reflect/example_test.go

15 lines
311 B

// +build js
package reflect_test
import "fmt"
func ExampleStructOf() {
// GopherJS does not implement reflect.addReflectOff needed for this test.
// See https://github.com/gopherjs/gopherjs/issues/499
fmt.Println(`value: &{Height:0.4 Age:2}
json: {"height":0.4,"age":2}
value: &{Height:1.5 Age:10}`)
}