Skip to content
New issue

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

value of map pointer error #12

Open
skadiD opened this issue May 19, 2021 · 0 comments
Open

value of map pointer error #12

skadiD opened this issue May 19, 2021 · 0 comments

Comments

@skadiD
Copy link

skadiD commented May 19, 2021

to operate function i use reflect with map like this

var funcs = map[string]interface{}{
	"func1": myfunc,
}

and use it reflect.ValueNoEscapeOf(funcs["func1"])
1

However i cant get right result and return the null pointer
All of these codes when use reflect is running successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant