Guest User

Untitled

a guest
Jan 3rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. // Decoding into nil interface? Switch to non-reflect code.
  2. if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
  3. v.Set(reflect.ValueOf(d.objectInterface()))
  4. return
  5. }
Add Comment
Please, Sign In to add comment