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:
>> >
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.
>
>
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
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
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()
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
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