Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-07 Thread Ian Lance Taylor
On Fri, Aug 7, 2020 at 12:47 AM Yonatan Gizachew wrote: > > Yeah, but my question is if it is possible to interpose the exported function Yes, it should be possible. Ian > On Friday, August 7, 2020 at 4:25:06 PM UTC+9 Lutz Horn wrote: >> >> Am 07.08.20 um 09:05 schrieb Yonatan Gizachew: >> >

Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-07 Thread Yonatan Gizachew
Yeah, but my question is if it is possible to interpose the exported function On Friday, August 7, 2020 at 4:25:06 PM UTC+9 Lutz Horn wrote: > Am 07.08.20 um 09:05 schrieb Yonatan Gizachew: > > //export Test > > func Test() { > > fmt.Println("test code") > > } > > Yes, now `Test` is exported. > >

Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-07 Thread Yosef Yo
Yeah, but my question if interposing this function is possible? On Friday, August 7, 2020 at 4:25:06 PM UTC+9 Lutz Horn wrote: > Am 07.08.20 um 09:05 schrieb Yonatan Gizachew: > > //export Test > > func Test() { > > fmt.Println("test code") > > } > > Yes, now `Test` is exported. > > Lutz > -- Y

Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-07 Thread Lutz Horn
Am 07.08.20 um 09:05 schrieb Yonatan Gizachew: //export Test func Test() { fmt.Println("test code") } Yes, now `Test` is exported. Lutz -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-07 Thread Yonatan Gizachew
Okay, thanks for that. What about now? package main import ( "C" "fmt" ) //export Test func Test() { fmt.Println("test code") } func main() { } On Friday, August 7, 2020 at 3:47:38 PM UTC+9 Lutz Horn wrote: > Am 07.08.20 um 05:00 schrieb eme...@gmail.com: > > //export test > > func test()

Re: [go-nuts] Is it possible to interpose exported functions.

2020-08-06 Thread Lutz Horn
Am 07.08.20 um 05:00 schrieb emeg...@gmail.com: //export test func test() { fmt.Println("test code") } `test` is not exported. It would be, if it was called `Test` with a capital `T`. Lutz -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

[go-nuts] Is it possible to interpose exported functions.

2020-08-06 Thread emeguag
Here in the example below: package main import ( "C" "fmt" ) //export test func test() { fmt.Println("test code") } func main() { } The above package was built using -builtmode=c-shared. I wanted to load the built library in my C code, and interpose the esported function 't