Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. package abc
  2.  
  3. func Detect(msg string) bool {
  4. return true
  5. }
  6.  
  7. package xyz
  8.  
  9. func Detect(msg string) bool {
  10. return true
  11. }
  12.  
  13. func main(){
  14. reflect.ValueOf("<package_name>").MethodByName("Detect").Call([]reflect.Value{reflect.ValueOf("hello")})
  15. }
  16.  
  17. panic: reflect: call of reflect.Value.Call on zero Value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement