Re: [go-nuts] Is embed.FS not expected to be walkable by fs.WalkDir()?

2021-06-20 Thread 'Axel Wagner' via golang-nuts
You need to pass "." to `fs.WalkDir`, not "". On Mon, Jun 21, 2021 at 7:42 AM John wrote: > package main > > import ( > "embed" > "io/fs" > "log" > ) > > //go:embed somefile.txt > var FS embed.FS > > func main() { > err := fs.WalkDir( > FS, > "", > func(path string, d fs.DirEntry,

[go-nuts] Is embed.FS not expected to be walkable by fs.WalkDir()?

2021-06-20 Thread John
package main import ( "embed" "io/fs" "log" ) //go:embed somefile.txt var FS embed.FS func main() { err := fs.WalkDir( FS, "", func(path string, d fs.DirEntry, err error) error { log.Println("path: ", path) return nil }, ) if err != nil { log.Println("err:

Re: [go-nuts] unexpected stuck in sync.(*Pool).Get()

2021-06-20 Thread Peter Z
> > On Thu, Jun 17, 2021 at 9:19 AM Peter Z wrote: > > > > The original post is on stackoverflow > https://stackoverflow.com/questions/67999117/unexpected-stuck-in-sync-pool-get > > > > > Golang ENV: > > go1.14.3 linux/amd64 > > > > Description: > > We have about half a million agents r

Re: [go-nuts] syntax regex package

2021-06-20 Thread Pietro Paolini
Thanks for answering - if I am getting this right this is actually pretty straightforward and it seems to be only a business concerning the escaping/unescaping of some characters '|(){}?+' if I am getting this right, so far it's working. On Fri, Jun 18, 2021 at 11:02 PM Kurtis Rader wrote: > O

Re: [go-nuts] how to access cmsg, udp and IP headers from go?

2021-06-20 Thread Ian Lance Taylor
On Sun, Jun 20, 2021 at 11:57 AM Dave Taht wrote: > > is there a sane library or go library extension for getting to the cmsg > information on a udp socket from go? In our case (bufferbloat.net) we are > trying to get the "irtt" tool capable of seeing the SO_TIMESTAMP_NS > information from the

[go-nuts] how to access cmsg, udp and IP headers from go?

2021-06-20 Thread Dave Taht
is there a sane library or go library extension for getting to the cmsg information on a udp socket from go? In our case (bufferbloat.net) we are trying to get the "irtt" tool capable of seeing the SO_TIMESTAMP_NS information from the linux kernel on receipt of it's udp packets from across the

[go-nuts] [ANN] [Geospatial] New set of Go bindings for GEOS

2021-06-20 Thread twp...@gmail.com
GEOS is the standard geometry library that underpins PostGIS and much of the open source geospatial world. https://github.com/twpayne/go-geos is a new set of Go bindings for GEOS that make it easy to use GEOS geometries in your Go applications. Features include: - Fluent Go API. - Low-le