[go-nuts] Simple pattern-matching library to check and verify the Origin header of a request

2022-07-30 Thread Mohamed Attahri
Hey there – sharing a tiny library we wrote to deal with the Origin header of a request in the context is a CORS context. It handles basic wildcard (*) matching, and should cover most use-cases. Hope it's useful to someone else: https://github.com/posterity/origin Cheers. -- You received this

Re: [go-nuts] Does "Message Passing" litmus test can fail in Go memory model?

2022-07-30 Thread Ian Lance Taylor
On Sat, Jul 30, 2022 at 7:26 AM Nobishii N wrote: > > I have read Go1.19(tip) memory model document(https://tip.golang.org/ref/mem) > and have following question. (I think my question is valid for the current > model(https://go.dev/ref/mem), though.) > > Here is my translation of so-called "Mes

[go-nuts] Does "Message Passing" litmus test can fail in Go memory model?

2022-07-30 Thread Nobishii N
Hello, I have read Go1.19(tip) memory model document(https://tip.golang.org/ref/mem) and have following question. (I think my question is valid for the current model(https://go.dev/ref/mem), though.) Here is my translation of so-called "Message Passing" litmus test to Go program. https://g

[go-nuts] Re: Short destination error with unicode.Transform

2022-07-30 Thread Brian Candler
If this is non-repeatable then perhaps it is some sort of race? Have you tried running your code with the race detector enabled? On Saturday, 30 July 2022 at 03:01:39 UTC+1 j...@simplecircle.io wrote: > I had a curious bug appear in my server logs when using a unicode > Transformer: > > tra