Re: [go-nuts] Re: Parsing Raw Syslog messages

2019-04-25 Thread Nitish Saboo
later is > definitely considered bad etiquette here. > > On Thursday, April 25, 2019 at 4:57:04 AM UTC-4, Nitish Saboo wrote: >> >> Hi, >> >> I want to parse raw syslog messages in GO.Similar to glossy npm, which is >> a very generic yet powerful library for par

Re: [go-nuts] Parsing Raw Syslog messages

2019-04-25 Thread Nitish Saboo
5 AM, Nitish Saboo > wrote: > > Hi, > > Can someone please guide me on this ? > > Thanks > > On Thu, Apr 25, 2019 at 2:27 PM Nitish Saboo > wrote: > >> Hi, >> >> I want to parse raw syslog messages in GO.Similar to glossy npm, which is >> a ve

Re: [go-nuts] Parsing Raw Syslog messages

2019-04-25 Thread Nitish Saboo
Hi, Can someone please guide me on this ? Thanks On Thu, Apr 25, 2019 at 2:27 PM Nitish Saboo wrote: > Hi, > > I want to parse raw syslog messages in GO.Similar to glossy npm, which is > a very generic yet powerful library for parsing raw syslog messages, How > can we p

[go-nuts] Parsing Raw Syslog messages

2019-04-25 Thread Nitish Saboo
Hi, I want to parse raw syslog messages in GO.Similar to glossy npm, which is a very generic yet powerful library for parsing raw syslog messages, How can we parse raw syslog message in GO ? Can I make use of this link

Re: [go-nuts] cannot use CallBack (type func(*_Ctype_char, *_Ctype_char, _Ctype_ulong)) as type *[0]byte in argument to _Cfunc_reload_pattern_db

2019-04-24 Thread Nitish Saboo
On Wed, Apr 24, 2019 at 1:51 PM Nitish Saboo wrote: > > Hi, > > I followed the link ' https://github.com/golang/go/wiki/cgo#function-variables' and made the following changes: > 1)main.go > package main > //#cgo CFLAGS: -I./syslog-ng-3.6.2/ > //#cgo LDFLAGS: syslog-node

Re: [go-nuts] cannot use CallBack (type func(*_Ctype_char, *_Ctype_char, _Ctype_ulong)) as type *[0]byte in argument to _Cfunc_reload_pattern_db

2019-04-24 Thread Nitish Saboo
o-generated-wrappers:2: undefined reference to `callOnMeGo_cgo' collect2: error: ld returned 1 exit status makefile:6: recipe for target 'main' failed make: *** [main] Error 2 Can someone please point me the what am I missing in my make file or something else in my code base that will resolve this er

[go-nuts] cannot use CallBack (type func(*_Ctype_char, *_Ctype_char, _Ctype_ulong)) as type *[0]byte in argument to _Cfunc_reload_pattern_db

2019-04-24 Thread Nitish Saboo
Hi, I am facing the following issue: I have a GO code that has to be called from the C code: var field_mappings map[string]string = map[string]string{ " A": "a", "B": "b", "C": "c", "D": "d"} //export CallBack func CallBack(key *C.char, value *C.char, value_len C.size_t){

Re: [go-nuts] Re: fatal error: 'config.h' file not found

2019-04-17 Thread Nitish Saboo
2019 at 10:48 AM Ian Lance Taylor wrote: > On Tue, Apr 16, 2019 at 9:56 PM Nitish Saboo > wrote: > > > > I am new to GO.Can I get little help on this ? > > It's really hard to know what the answer is. > > One thing you can try is adding a #cgo CFLAGS line with a -I o

[go-nuts] Re: fatal error: 'config.h' file not found

2019-04-16 Thread Nitish Saboo
Hi, I am new to GO.Can I get little help on this ? Thanks, Nitish On Wednesday, April 17, 2019 at 12:09:30 AM UTC+5:30, Nitish Saboo wrote: > > Hi, > > > I am using syslog-ng-3.6.2 ( > https://src.fedoraproject.org/lookaside/pkgs/syslog-ng/syslog-ng_3.6.2.tar.gz/6928e9be3499a2

[go-nuts] fatal error: 'config.h' file not found

2019-04-16 Thread Nitish Saboo
Hi, I am using syslog-ng-3.6.2 ( https://src.fedoraproject.org/lookaside/pkgs/syslog-ng/syslog-ng_3.6.2.tar.gz/6928e9be3499a2e9ae52ea8aa204b165/ ). I want to use syslog-ng header files in my project. This is my repository : https://github.com/nitishsaboo/Testing syslog-node.c is a file where

<    1   2