We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 注意 p 是 Value 类型,需要还原成接⼝口才能转型。 fmt.Println(u, p.Interface().(User))
需要改为
// 注意 p 是 Value 类型,需要还原成接⼝才能转型 fmt.Println(u, p.Elem().Interface().(User))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
需要改为
The text was updated successfully, but these errors were encountered: