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. > > >

[go-nuts] where is the repository of proxy.golang.org?

2019-06-14 Thread Abdullah Saleem
Asking the real question -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit http

[go-nuts] Re: Go modules v2.0.0 won't work (but v2.0.1 will)

2019-06-14 Thread Francesc Campoy Flores
Turns out my code was correct and the only problem was that somehow the cache was corrupted. I ran go clean -modcache and everything is now working. On Friday, June 14, 2019 at 4:24:34 PM UTC-7, Francesc Campoy Flores wrote: > > Hi everyone, > > > I have a pretty weird error with Go modules tha

[go-nuts] Go modules v2.0.0 won't work (but v2.0.1 will)

2019-06-14 Thread Francesc Campoy Flores
Hi everyone, I have a pretty weird error with Go modules that I can't explain - after some investigation I feel this might be a bug but I'd like to have some extra eyes on it. I have migrated my tools repository (github.com/campoy/tools) to use Go modules and as a test I've tagged two majo

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

Re: [go-nuts] Gob encoding not working to NFS

2019-06-14 Thread Rob Pike
The problem is that os.NewFile makes a new File struct; it doesn't create a file. Also, the first argument should be an open file descriptor, not a flag. I think you want to use os.Create. You certainly don't want NewFile. -rob On Sat, Jun 15, 2019 at 12:21 AM wrote: > I have been writing metr

Re: [go-nuts] Yet another new fast json/xml parser library

2019-06-14 Thread Tamer Gür
Thanks Roger. I applied your suggestions. On Wed, 12 Jun 2019 at 19:19, roger peppe wrote: > I haven't looked further than the godoc, but a couple of initial > suggestions: > > - the word JSON should always be spelled in all-caps if the first letter > is J, so you would be better with NewJSONPar

[go-nuts] Gob encoding not working to NFS

2019-06-14 Thread alex
I have been writing metrics to a NFS, then reading them from another server. In my unit tests everything works fine on a local disk, but not when I deploy. I was previously using JSON streams on NFS, (one object per line), but gob seems like the idiomatic solution. Since no errors were being t

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-14 Thread Elias Naur
On Friday, June 14, 2019 at 12:58:40 PM UTC+2, Mark Bauermeister wrote: > > Any plans for a Vulkan back-end? > When I'm happy with the OpenGL ES backend then yes, Vulkan is the logical next step. - elias -- You received this message because you are subscribed to the Google Groups "golang-n

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-14 Thread Mark Bauermeister
Any plans for a Vulkan back-end? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visi

Re: [go-nuts] Re: Go will shine on huge web projects, but how about simple ones?

2019-06-14 Thread 'Axel Wagner' via golang-nuts
So, I *did* invest a little more time, and ISTM that the data you're getting are mostly a result of Go handling requests in parallel and perl not doing that. The statistics on top of the ab-output average over all requests by total time taken. Whereas the data you dumped and plotted contains the ti

Re: [go-nuts] Re: Go will shine on huge web projects, but how about simple ones?

2019-06-14 Thread 'Axel Wagner' via golang-nuts
I just want to re-emphasize one specific thing: Neither I, nor anyone else, actually owes you any of their time. I don't know you and I don't feel like it is a good investment of my time to convince strangers on the internet. So yes. You asked me to blog about things. I won't and I also won't spend