[go-nuts] [ANN]Route aws lambda requests using existing standard http router library such as mux or bone.

2018-03-11 Thread davy zhang
https://github.com/davyzhang/agw A small library I used for many of my projects. When I use aws lambda to handle the requests from apigateway, it is pretty annoying to handle different requests with a single lambda function due to the fact that apigateway does not pass all the HTTP information

[go-nuts] Re: constructors vs lazy initialization

2018-03-11 Thread matthewjuran
> > I prefer the later when possible because it enables callers to use the > zero value of a type without explicit initialisation. Two great standard library examples of this are sync.Mutex / sync.RWMutex and bytes.Buffer / strings.Builder. Matt On Saturday, March 3, 2018 at 9:20:11 PM

[go-nuts] Re: Flutter and golang

2018-03-11 Thread matthewjuran
For my web application I previously reached the conclusion that the best approach is to write independent clients with the platform programming and visual design language instead of trying something cross-platform. I can see Flutter or QT being great for “we need this to work everywhere and

[go-nuts] Re: Flutter and golang

2018-03-11 Thread Ged Wed
This is the repo the flutter team are doing the flutter desktop. https://github.com/google/flutter-desktop-embedding It's the same code as runs on mobile essentially except they have an embedding API designed into flutter to allow it to be embedded onto desktop. I am not 100% sure because it's

[go-nuts] Re: constructors vs lazy initialization

2018-03-11 Thread snmed
But this is only working as long as you do not need any services or dependencies. And in that case i would really appreciate if the language natively supports a nil check on method parameters at compile time. For all cases where nil is a valid value, the language needs a marker to allow such

Re: [go-nuts] Help On Kqueue Server

2018-03-11 Thread Jesper Louis Andersen
On Sat, Mar 10, 2018 at 10:19 AM Anto Aravinth wrote: > Hello all, > > I'm learning golang and I wanted to try out this. Wanted to make a event > driven server using Kqueue sys call (I'm on mac). A simple echo server will > do. > If you want to learn this, I suggest

[go-nuts] Re: [Advice needed] How to vendor common dependencies for plugins

2018-03-11 Thread Jay Guo
Bump.. any thoughts? Thanks! - J On Thursday, March 8, 2018 at 2:03:37 PM UTC+8, Jay Guo wrote: > > Golang gurus, > > I'm currently trying to modularize my project with the help of Golang > plugin, and I come across this dependency vendoring dilemma. > > Let's say we have a project layout: > >