Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
proposal: fmt: print *reflect.Value as reflect.Value #12959
The commit that introduced this behavior has message:
The motivation was to disclose the contents of a
However, fmt doesn't disclose the contents of a
v := reflect.ValueOf(true) fmt.Sprintf(v) == "true" fmt.Sprintf(&v) == "<bool Value>"
Modify the spec to
and make corresponding changes to the implementation.
v := reflect.ValueOf(true) fmt.Print(&v) // Output: true