Thank you!

To make sure I understand what is going on I tried to reproduce the same 
thing. But I can't get the compiler to find the definition of my function 
even though I used the compiler directive here

https://github.com/siadat/golinkname-test/blob/master/hello/hello.go#L6

I want to link the hello.hello and greet.hello functions.

What am I doing wrong?



On Thursday, February 9, 2017 at 4:10:21 PM UTC+3:30, Christian Joergensen 
wrote:
>
> On Thursday, February 9, 2017 at 1:15:00 PM UTC+1, Sina Siadat wrote:
>>
>> But can't find how the compiler connects the two.
>>
>
> It's using the //go:linkname compiler directive:
>
> https://github.com/golang/go/blob/master/src/runtime/panic.go#L583
> https://golang.org/cmd/compile/ 
>
>  Cheers,
>
> Christian
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to