Re: [go-nuts] Re: Go implementation of CLP

2022-11-19 Thread Jason E. Aten
on the off-chance that ISO8601 timestamp parsing is new (unlikely since you're dealing with logs), I'll point out that parsing them is relatively easy in Go: import "time" const RFC3339NanoNumericTZ = "2006-01-02T15:04:05.9-07:00" tmstr := "2019-05-23T15:09:57.000-05:00" tm, err = time.Par

Re: [go-nuts] Re: Go implementation of CLP

2022-11-19 Thread Jason E. Aten
On Sat, Nov 19, 2022 at 8:45 AM david lion wrote: > ...could you let us know more about what kind of queries you want to run? > The open-source C++ code supports wildcard queries but some users prefer > grep-like regex, SQL-like boolean expressions, etc. We haven't yet settled > on one, especiall

Re: [go-nuts] golang building statically linked error: loadinternal: cannot find runtime/cgo

2022-11-19 Thread Ian Lance Taylor
On Sat, Nov 19, 2022 at 7:06 AM Alexey Kuznetsov wrote: > > Correction. When I'm using -buildmode pie it producing weired file static / > dynamic: > > # go install -ldflags "-extldflags -static" -buildmode pie > gitlab.com/axet/swap@swap-0.0.4 > > # file .go/bin/swap > .go/bin/swap: ELF 64-bit

Re: [go-nuts] golang building statically linked error: loadinternal: cannot find runtime/cgo

2022-11-19 Thread Alexey Kuznetsov
Correction. When I'm using -buildmode pie it producing weired file static / dynamic: # go install -ldflags "-extldflags -static" -buildmode pie gitlab.com/axet/swap@swap-0.0.4 # file .go/bin/swap .go/bin/swap: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpret

Re: [go-nuts] golang building statically linked error: loadinternal: cannot find runtime/cgo

2022-11-19 Thread Alexey Kuznetsov
'file' command used to say "dynamically linked" if I'm not using '-linkmode external' flag. I tried many times, I didn't pay attention, now it's working...I guess the only question left with "loadinternal: cannot find runtime/cgo" -- AK On Sat, Nov 19, 2022 at 5:49 PM Ian Lance Taylor wrote: >

Re: [go-nuts] golang building statically linked error: loadinternal: cannot find runtime/cgo

2022-11-19 Thread Ian Lance Taylor
On Sat, Nov 19, 2022, 6:46 AM Alexey Kuznetsov wrote: > > I'm trying to build statically linked binary and it works with 'build' > command but failed with 'install' command. Here is an example: > > go build -ldflags "-linkmode external -extldflags -static" -a swap.go > > # file swap > swap: ELF 6

[go-nuts] golang building statically linked error: loadinternal: cannot find runtime/cgo

2022-11-19 Thread Alexey Kuznetsov
Hello! I'm trying to build statically linked binary and it works with 'build' command but failed with 'install' command. Here is an example: go build -ldflags "-linkmode external -extldflags -static" -a swap.go # file swap swap: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statical

[go-nuts] unexpected: 16-byte float type - long double

2022-11-19 Thread 周群杰
is there anyway to use long double type data in CGO ? for now I can not change the structure and type of C code , maybe the only way is rewrite old data structure of C in cgo? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t

Re: [go-nuts] Re: Go implementation of CLP

2022-11-19 Thread david lion
Ah, the parsing component doesn't include search, but it is a necessary part to enable searching compressed logs. CLP's searching of compressed logs is enabled by the storage format it uses (as it both compresses and indexes the logs). The parsing component is how we extract information from th

Re: [go-nuts] where is GOROOT set?

2022-11-19 Thread Brian Candler
On Saturday, 19 November 2022 at 02:50:18 UTC pat2...@gmail.com wrote: > On Friday, November 18, 2022 at 1:10:40 PM UTC-5 Brian Candler wrote: > >> You still should have a go.mod. Even if you don't intend to publish your >> code anywhere, you give it a module name - anything will do as long as i