[go-nuts] graphql and upload file

2023-05-28 Thread Kamal Sahmoud
i am using graphql-go and currently i cannot found any good solution to upload file using graphql can u share any article, example, github etc about this spent i really spent a lot of time but until know cannot fixe this issue of upload file using graphql thank u -- You received this

Re: [go-nuts] Using struct{} for context keys

2023-05-28 Thread burak serdar
Two values A and B are equal (A==B) if A and B have the same type and the same values. In a code where a:=clientContextKey{} b:=clientContextKey{} a==b is true, because they have the same types, and they have the same values (i.e. the empty value). Note however: a:={} b:={} It is not

Re: [go-nuts] No DNS TTL information in net.LookupSRV()

2023-05-28 Thread TheDiveO
would https://pkg.go.dev/github.com/miekg/dns be an option instead of the std lib? On Friday, May 26, 2023 at 9:45:37 PM UTC+2 Varun Ahluwalia wrote: > Is there a TTL support in GoLang DNS, or if it was implemented in a later > release, please suggest. > Thanks, > > On Saturday, October 8,

[go-nuts] Using struct{} for context keys

2023-05-28 Thread cpu...@gmail.com
I've recently stumbled across code like this https://go.dev/play/p/u3UER2ywRlr: type clientContextKey struct{} ctx := context.Background() ctx = context.WithValue(ctx, clientContextKey{}, "foo") _, ok := ctx.Value(clientContextKey{}).(string) Naively, I had expected this to fail since I