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.
fmt: %+v doesn't work for types external to package #8327
What does 'go version' print? 1.3 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. http://play.golang.org/p/wEN2KnN4CM What happened? Only type declared in current package gets field names What should have happened instead? Either make the field names work for imported packages, or the documentation should have made this behavior clear. Currently, it just says: "when printing structs, the plus flag (%+v) adds field names".