K
K
kolo20122017-04-01 16:48:17
go
kolo2012, 2017-04-01 16:48:17

How to get a reflect structure?

Now I have to check that the incoming interface{} contains a struct Error type, get it and do something with it. Here I threw something like what I want to do, but naturally it does not work) https://play.golang.org/p/LdLJguTXB8
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kolo2012, 2017-04-01
@kolo2012

Sorry. Solution: https://play.golang.org/p/7gTFtYLjZw suddenly come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question