[go-nuts] Re: replacement for filepath.HasPrefix?

2024-05-16 Thread peterGo
Jochen, "the first step is to define exactly what the function should do." path/filepath: fix HasPrefix #18358 https://github.com/golang/go/issues/18358#issuecomment-497728574 Peter On Thursday, May 16, 2024 at 7:15:45 AM UTC-4 Jochen Voss wrote: > Dear all, > > filepath.HasPrefix is deprecate

[go-nuts] replacement for filepath.HasPrefix?

2024-05-16 Thread Jochen Voss
Dear all, filepath.HasPrefix is deprecated, because it doesn't alway work. What would be a replacement for this function, which at least respects path boundaries, and maybe also ignores case when needed? All the best, Jochen -- You received this message because you are subscribed to the Goog

Re: [go-nuts] using runtime cgo.Handle passing struct types

2024-05-16 Thread Pavan
Thanks . Yes it works when C API takes uintptr_t. In my case, the C API expects void * which i can not change, so I was trying to make it work with the variant example stated above. On Thursday, May 16, 2024 at 5:28:55 AM UTC+5:30 Ian Lance Taylor wrote: > On Tue, May 14, 2024 at 10:37 PM Pava