Re: [go-nuts] is not executable

2019-08-04 Thread Alexander Kapshuk
On Sun, Aug 4, 2019 at 6:37 PM Allan Edwards wrote: > > I have written a small console application that has package main at the top > and the program looks just like another console that runs successfully. On > both mac and windows I am getting a message stating the executable created is > not

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-25 Thread Alexander Kapshuk
On Tue, Jun 25, 2019 at 10:07 AM Alexander Kapshuk wrote: > > Wander if specifying those linker flags via the '-ldflags' command > line option would make a difference: > go help build: > -ldflags '[pattern=]arg list' >arguments to pass on ea

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-25 Thread Alexander Kapshuk
lid >> flags :( >> >> /* >> #cgo LDFLAGS: --no-undefined --enable-runtime-pseudo-reloc >> #include >> #include >> #include >> */ >> import "C" >> >> >> >> Le lundi 24 juin 2019 18:58:22 UTC+2, Alexander Kap

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-24 Thread Alexander Kapshuk
t; you can find the dump at this place: > https://pastebin.com/cg33nktu > > Le lundi 24 juin 2019 13:00:49 UTC+2, Alexander Kapshuk a écrit : >> >> Or was this it? >> >> #ifdef __cplusplus >> extern "C" { >> #endif >> extern void _RVExtensionVersio

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-24 Thread Alexander Kapshuk
t; > /* End of boilerplate cgo prologue. */ > > #ifdef __cplusplus > extern "C" { > #endif > > > extern void RVExtensionVersion(char* p0, size_t p1); > > extern void RVExtension(char* p0, size_t p1, char* p2); > > #ifdef __cplusplus > } >

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-24 Thread Alexander Kapshuk
e your dll and post the output of dumpbin.exe /EXPORTS /path/to/slib.dll showing the listing of your exported symbols? On Mon, Jun 24, 2019 at 11:41 AM Alexander Kapshuk wrote: > > If I understand it correctly, cgo should have generated a > _cgo_export.h header with a declaration for you

Re: [go-nuts] [cgo ] Export go function to C - illegal character

2019-06-24 Thread Alexander Kapshuk
If I understand it correctly, cgo should have generated a _cgo_export.h header with a declaration for your exported function. Can you please post the generated declaration? On Mon, Jun 24, 2019 at 12:47 AM wrote: > > We are trying to make the x32 version of the extension, as shown in the link >

Re: [go-nuts] Understanding panic at addr=0x38 when calling a method on a nil interface

2017-11-13 Thread Alexander Kapshuk
On Mon, Nov 13, 2017 at 1:42 PM, Konstantin Khomoutov wrote: > While debugging a program which had a panic due to an attempt to call a > method on a value of an interface typeš, I came across the behaviour I > find strange, and would like to get help understanding what happens. > > The behaviour

Re: [go-nuts] gosave for caller's SP

2017-04-14 Thread Alexander Kapshuk
On Fri, Apr 14, 2017 at 3:06 PM, 代君 wrote: > // void gosave(Gobuf*) > // save state in Gobuf; setjmp > TEXT runtime·gosave(SB), NOSPLIT, $0-8 > MOVQ buf+0(FP), AX // gobuf > LEAQ buf+0(FP), BX // caller's SP > MOVQ BX, gobuf_sp(AX) > MOVQ 0(SP), BX // caller's PC > MOVQ BX, gobuf_pc(AX) > MOVQ $0,

Re: [go-nuts] flag: possible issue with intValue.Set

2017-02-21 Thread Alexander Kapshuk
On Tue, Feb 21, 2017 at 9:13 PM, Alexander Kapshuk wrote: > On Tue, Feb 21, 2017 at 7:51 PM, Manlio Perillo > wrote: >> I have noted that the intValue (and uintValue) Set method do the following: >> v, err := strconv.ParseInt(s, 0, 64) >> >> However this

Re: [go-nuts] flag: possible issue with intValue.Set

2017-02-21 Thread Alexander Kapshuk
On Tue, Feb 21, 2017 at 7:51 PM, Manlio Perillo wrote: > I have noted that the intValue (and uintValue) Set method do the following: > v, err := strconv.ParseInt(s, 0, 64) > > However this is incorrect on 32 bit systems: > https://play.golang.org/p/tvAUCI63x3 > > Can this be considered a bug?

Re: [go-nuts] fmt verb to single quote text

2017-01-05 Thread Alexander Kapshuk
On Thu, Jan 5, 2017 at 6:45 PM, bsr wrote: > Please see the example https://play.golang.org/p/SeG7oO5Us0 > > I am doing some javascript codegen and I want my values single quoted. so, > in the above example, I want the output to be > > > { v: 'hello ... \n world'} > > > instead of > > { v: '"hello

Re: [go-nuts] time.Since()

2016-10-03 Thread Alexander Kapshuk
On Mon, Oct 3, 2016 at 11:00 AM, wrote: > hi guys > > i can't undrestand this func, can you say example for this func : > > time.Since() > > thank you > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and sto

Re: [go-nuts] os package...???

2016-10-01 Thread Alexander Kapshuk
On Sat, Oct 1, 2016 at 4:21 PM, wrote: > > What applications can be build package OS ??? > > if u can say example i be very happy > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receivin