Re: [go-nuts] bug on template on version >=1.14

2020-03-20 Thread Giulio De Donato
Hello Gregor, thanks a lot with the html I reproduced the bug, I also found the open issue, https://github.com/golang/go/issues/33671 > FWIW, http://json.org agrees that \u escapes are valid JSON and \x escapes are not my question was about if I was missing something, and I was missing the html/

Re: [go-nuts] Issue with handler

2020-03-20 Thread Kurtis Rader
On Fri, Mar 20, 2020 at 11:50 AM Ali Hassan wrote: > I have two html files >index and login > Index return status = 200 > login return status = 400 > > Code snipnet > I didn't see any code. All I saw were two pictures that didn't make any sense :-) In other words, please post

Re: [go-nuts] Issue with handler

2020-03-20 Thread robert engels
You have no login.html file... > On Mar 20, 2020, at 1:50 PM, Ali Hassan wrote: > > I have two html files >index and login > Index return status = 200 > login return status = 400 > > Code snipnet > > > > > > > > > > -- > You received this message because y

[go-nuts] Issue with handler

2020-03-20 Thread Ali Hassan
I have two html files index and login Index return status = 200 login return status = 400 Code snipnet [image: err2.JPG] [image: error0.JPG] -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

Re: [go-nuts] bug on template on version >=1.14

2020-03-20 Thread Gregor Best
Hi Guilio, the playground example is using `text/template`. If you use `html/template` instead it'll also do the replacement. The behaviour is part of `html/template`'s feature set, and as far as I can remember (since at least 2015) has been present under the umbrella of context aware escapi

[go-nuts] bug on template on version >=1.14

2020-03-20 Thread liuggio
Hello everybody, we are issuing on our website a problem with templating, variable is: "+" is converted to: "+" and inside the * { "plain inside ld+json": "\x2b" } i created the running example https://play.golang.org/p/sGP2Y2KCXLg but in the play.golang.org website the bu

Re: [go-nuts] go build output depending on project structure

2020-03-20 Thread Nitish Saboo
Thank you Ian and Jake for the response. Sure Ian, will go through it. Thanks, Nitish On Thu, Mar 19, 2020 at 11:11 PM Ian Lance Taylor wrote: > It might help to read > https://golang.org/cmd/go/#hdr-Package_lists_and_patterns, including > the paragraph starting "As a special case, if the pack