See the go/parser package.
It's not too hard to work out.
On 25 April 2013 19:24, <
sbde...@gmail.com> wrote:
> Let's say I have the string "net.Dial". How would I get ["string", "string"]
> as the two argument types, and ["net.Conn", "error"] as the two return
> types?
>
> Note: I'm not asking how to do this at runtime, and it doesn't even have to
> be done in Go itself (although it can be). I'm asking about statically
> analyzing the "net" package to find the function named "Dial" and to figure
> out its argument and return types as strings.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>