[go-nuts] How to constant ?!

2019-05-28 Thread Ashutosh Baghel
Hello folks, I want to declare a few variables constant. But I guess there is nothing as "Constant" type in GoLang. How do I achieve this in GoLang? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

[go-nuts] Memory Freeing for C.String

2019-04-18 Thread Ashutosh Baghel
Hello Folks, Having some confusion for freeing memory allocated by C.String(). Filter_CSo my program is something like below. A. Should we just call C.Free after line 6 for Filter_C directly or defer is just fine. B. Currently we are expecting the user of fetchdata() to free the Context_C, a

[go-nuts] Re: [URGENT] Pass array of string between Go and C library

2019-03-29 Thread Ashutosh Baghel
(C.int(val),&arr[0])) On Friday, 29 March 2019 09:23:31 UTC+5:30, Justin Israel wrote: > > > > On Friday, March 29, 2019 at 11:08:06 AM UTC+13, Ashutosh Baghel wrote: >> >> Hi folks, >> >> I am new to Go-Programming and having the following requirement,

[go-nuts] Re: [URGENT] Pass array of string between Go and C library

2019-03-29 Thread Ashutosh Baghel
Thanks let me check. Will update. On Friday, 29 March 2019 09:23:31 UTC+5:30, Justin Israel wrote: > > > > On Friday, March 29, 2019 at 11:08:06 AM UTC+13, Ashutosh Baghel wrote: >> >> Hi folks, >> >> I am new to Go-Programming and having the following requ

[go-nuts] [URGENT] Pass array of string between Go and C library

2019-03-28 Thread Ashutosh Baghel
Hi folks, I am new to Go-Programming and having the following requirement, I need to have Array of Strings,(for example names) at my 'Go Side' . But i would get this names from my C library API which i have included in my Go program. Note: I have liberty to modify the C library too, i could c