[go-nuts] simple line plot in realtime

2022-04-28 Thread Daniel Jankins
Hi, I have been using github.com/tadvi/winc and it works well. I would like a real time plot of data. It would be a simple line plot that got update every second or so. Can anyone point me to some examples? Thank you -- DanJ -- You received this message because you are subscribed to the

[go-nuts] Taming SQL and ORMs with sqlc — go get it #001

2022-04-28 Thread ean...@gmail.com
We’ve just started a new article series about excellent Go packages and tools that you might not have heard about called "go get it". First out is an article about sqlc, an awesome tool for managing database queries. Check it out here . Would love

[go-nuts] Re: Constant CPU usage on an idle HTTP server from Go 1.17

2022-04-28 Thread Klaus Post
This "smells" a lot like https://github.com/golang/go/issues/51654 - though the repro is with TLS. This is very disruptive for us (MinIO) as well, seeing this at several customers. Obviously downgrading to Go 1.16.6 is less than optimal for us. /Klaus On Tuesday, 12 April 2022 at 14:55:41

[go-nuts] Re: Java to Go converter - 2

2022-04-28 Thread alex-coder
So, multithreading. I found a simple example from Oracle with the wonderful name "Bad Threads" there: https://docs.oracle.com/javase/tutorial/essential/concurrency/QandE/questions.html , simplified it even more, called the example a new simple name One and extend a Converter to translate the

Re: [go-nuts] Question regarding Golang Interfaces and composite struct

2022-04-28 Thread burak serdar
On Thu, Apr 28, 2022 at 9:49 AM Glen D souza wrote: > Consider the following piece of code > > type Dog struct { > } > > type Walker interface { > Walks() > } > > func (d *Dog) Walks() { > > } > > func CheckWalker(w Walker) { > > } > > func main() { > dog := Dog{} > CheckWalker(dog)

[go-nuts] Question regarding Golang Interfaces and composite struct

2022-04-28 Thread Glen D souza
Consider the following piece of code type Dog struct { } type Walker interface { Walks() } func (d *Dog) Walks() { } func CheckWalker(w Walker) { } func main() { dog := Dog{} CheckWalker(dog) -> cannot use dog (variable of type Dog) as Walker value in argument to CheckWalker: