[go-nuts] Re: gopls: How to suppress a warning?

2024-02-11 Thread Ernest Micklei
Applying the answer from Robert, you get ``` "gopls": { "ui.diagnostic.analyses": { "composites": false } }, ``` On Friday 23 December 2022 at 09:21:39 UTC+1 Torsten Bronger wrote: > Hallöchen! > > 'Robert Findley' via golang-nuts writes: > > > You can disable the "composites" analyzer: https://gi

Re: [go-nuts] http.req.URI.Scheme inside is empty?

2018-05-24 Thread ernest
if your service is behind some TLS terminating hop then you could also inspect the X-Forwarded-Proto header if available. On Thursday, 1 March 2012 23:54:10 UTC+1, Andrew Gerrand wrote: > > On 1 March 2012 22:06, Johann Höchtl > > wrote: > > > > but req.URL is constructed by parsing the Request

[go-nuts] [ANN] .proto file (2,3) parser and formatter (protofmt)

2017-02-06 Thread Ernest Micklei
= 100 [packed=true]; repeated double packed_double = 101 [packed=true]; repeatedbool packed_bool = 102 [packed=true]; repeated ForeignEnum packed_enum = 103 [packed=true]; } MIT License. Contributions welcome. ^ Ernest -- You received this message because you are

[go-nuts] Error when using go tool trace

2016-10-11 Thread xavier . ernest . zebier
Hello, I m trying to use the go tool trace. My code is package main import ( "flag" "fmt" "math" "net/http" "os" "runtime" "runtime/trace" "time" ) func indexHandler(w http.ResponseWriter, r *http.Request) { primesInRangeParallel(10, 64) fmt.Fprintf(w, "hello world, I'm running on %s with an %