[go-nuts] Re: A single type to wrap text/template.Template and html/template.Template

2018-12-31 Thread K Davidson
Greetings, One way to accomplish this may be to use embedding to wrap both Templates into a new type: package main import ( txt "text/template" "html/template" ) // CsvTemplate wraps a html/template.Template and add text/template.Template field for CSV output. type CsvTemplate struc

[go-nuts] Re: A single type to wrap text/template.Template and html/template.Template

2018-12-31 Thread K Davidson
Greetings, One way to accomplish this may be to use embedding to wrap both Templates into a new type: package main import ( txt "text/template" "html/template" ) // CsvTemplate wraps a html/template.Template and adds a text/template.Template // field for CSV output. type CsvTemplate

[go-nuts] Re: A single type to wrap text/template.Template and html/template.Template

2018-12-31 Thread K Davidson
One way to accomplish this may be to use embedding to wrap both Templates into a new type: package main import ( txt "text/template" "html/template" ) // CsvTemplate wraps a html/template.Template and adds a text/template.Template // field for CSV output. type CsvTemplate struct {

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2018-12-31 Thread Dan Kortschak
Where do we fall down? On Mon, 2018-12-31 at 01:38 -0800, minfo...@arcor.de wrote: > And then Golang doesn't treat complex  > matrix algebra well... -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivin

[go-nuts] Re: go for robotic control, walking balance, quad flight control

2018-12-31 Thread minforth
Am Sonntag, 30. Dezember 2018 06:05:25 UTC+1 schrieb Pat Farrell: > > I need a project to motivate myself into writing some non-trivial go. So I > want to learn about implementing control theory, sensors, etc. Things like > IMU (gyro, 3D magnetic compass, and accelerometer) GPS. Not only do I w

[go-nuts] A single type to wrap text/template.Template and html/template.Template

2018-12-31 Thread Renee Jylkka
Hello, The project that I am working on is a web app written on a custom web server using Go and Go templates. I store all of the templates in a map[string]Template, where the string is the page name. When someone visits a page, the server checks whether that page is in the map, then if so c

[go-nuts] Re: why in source of go compiler, initialize a *gc.Node with the help of a temp struct x? can't we initialize it directly?

2018-12-31 Thread Juliusz Chroboczek
> See https://golang.org/cl/36022. There's a terrifying sort of beauty to it, like a tarantula or a snake. (And it most certainly deserves a comment in the source.) -- Juliusz -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Re: Announcing a Fyne GUI toolkit

2018-12-31 Thread Sebastien Binet
Great! I'll give this a try. Thanks. -s sent from my droid On Sun, Dec 30, 2018, 23:19 Andrew Williams Hi, > > For anyone still interested in this project but held back by the EFL build > or runtime dependency then I have good news: > * Our new default driver does not rely on additional librari