Re: [go-nuts] Problems with Text Template

2019-06-17 Thread Yamil Bracho
Yes, Kurtis you are absolutely right!!! I just typed in "template.ParseFiles" and my editor made the changes for me in the imports and it imported "html/template" and i di not check this... Thanks!!! El viernes, 14 de junio de 2019, 22:20:11 (UTC-5), Kurtis Rader escribió: > > It is very unlik

Re: [go-nuts] Problems with Text Template

2019-06-14 Thread Kurtis Rader
It is very unlikely you are using text/template. At least I can't reproduce the problem using text/template but can with html/template: https://play.golang.org/p/elqHI1EtfFa. Or you are using text/template but somewhere before executing that template your data is being converted to a HTML friendly

Re: [go-nuts] Problems with Text Template

2019-06-14 Thread Yamil Bracho
Hi, Yes, I am using text/template... El viernes, 14 de junio de 2019, 19:07:24 (UTC-4), Burak Serdar escribió: > > On Fri, Jun 14, 2019 at 4:09 PM Yamil Bracho > wrote: > > > > I am building a kind of code generator based in golang templates and I > have problems with some characters. > > >

Re: [go-nuts] Problems with Text Template

2019-06-14 Thread Burak Serdar
On Fri, Jun 14, 2019 at 4:09 PM Yamil Bracho wrote: > > I am building a kind of code generator based in golang templates and I have > problems with some characters. > > For example if I have got this line in my template > public class {{.Name}}Validator : AbstractValidator<{{.Name}}Input> Are yo

[go-nuts] Problems with Text Template

2019-06-14 Thread Yamil Bracho
I am building a kind of code generator based in golang templates and I have problems with some characters. For example if I have got this line in my template public class {{.Name}}Validator : AbstractValidator<{{.Name}}Input> is converted to this in my output file public class GetLoginMarketCo