Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package abc
- func Detect(msg string) bool {
- return true
- }
- package xyz
- func Detect(msg string) bool {
- return true
- }
- func main(){
- reflect.ValueOf("<package_name>").MethodByName("Detect").Call([]reflect.Value{reflect.ValueOf("hello")})
- }
- panic: reflect: call of reflect.Value.Call on zero Value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement