[go-nuts] Re: A simple and effective Golang web framework

2016-09-27 Thread Devashish Ghosh
https://github.com/jabong/florest-core A lightweight workflow based REST API framework with features customized workflow, logging, monitoring, a/b test, dynamic config, profiling, swagger, database adapters, cache adapter. On Saturday, August 24, 2013 at 12:32:48 PM UTC+5:30, Tom wrote: > > Hi,

[go-nuts] Re: Web Framework

2016-09-27 Thread Devashish Ghosh
https://github.com/jabong/florest-core A lightweight workflow based REST API framework with features like customized workflow, logging, monitoring, a/b test, dynamic config, profiling, swagger, database adapters, cache adapter. On Sunday, June 24, 2012 at 4:35:41 PM UTC+5:30, Max wrote: > > Wh

[go-nuts] Re: Which web framework is recommended to use with GO?

2016-09-27 Thread Devashish Ghosh
https://github.com/jabong/florest-core A lightweight workflow based REST API framework with features customized workflow, logging, monitoring, a/b test, dynamic config, profiling, swagger, database adapters, cache adapter. On Saturday, January 17, 2015 at 4:30:07 PM UTC+5:30, Subhajit Datta wrot

[go-nuts] Why result type is different on sql.Query()

2016-09-27 Thread Harry
I mention about the below func of ```database/sql``` package and I'm using golang 1.7. func (db *DB) Query(query string, args ...interface{}) (*Rows, error) {...} I'm using MySQL and handling query result like that code below, (there are some omissions.) sql := "SELECT field1, field2 FROM t_

Re: [go-nuts] go/types - creating a Type from whole cloth?

2016-09-27 Thread Ian Lance Taylor
On Tue, Sep 27, 2016 at 9:20 PM, Nate Finch wrote: > I want to, for example, compare a Type from code I'm ingesting to see if > it's a *bytes.Buffer is there a way I can make my own Type from a > value or type definition in my code so that I can compare the two Types? Or > do I have to do s

[go-nuts] go/types - creating a Type from whole cloth?

2016-09-27 Thread Nate Finch
I want to, for example, compare a Type from code I'm ingesting to see if it's a *bytes.Buffer is there a way I can make my own Type from a value or type definition in my code so that I can compare the two Types? Or do I have to do something ugly like comparing the String() output of the

Re: [go-nuts] json inline

2016-09-27 Thread Matt Harden
I think what they are saying there is that the `,inline` tag part is ignored by the JSON encoding and decoding software, and it's just there for documentation - to remind humans that the struct will be inlined in the resulting JSON. The reason the struct is inlined is because it is an "anonymous st

Re: [go-nuts] type-embeded consts and variables request

2016-09-27 Thread Ian Lance Taylor
On Tue, Sep 27, 2016 at 5:08 PM, Ally Dale wrote: > > The puzzle I have face to is that I HAVE TO create a new Duration type, and > HAVE TO inherit all methods and constants from std.time.Duration. Well, then, you have to replicate all the constants and methods. The methods on your new type can

Re: [go-nuts] getting method comments from a package

2016-09-27 Thread Dan Kortschak
Thanks. On Tue, 2016-09-27 at 11:35 +0100, roger peppe wrote: > A slightly different problem, but you might be interested > in this code that I use to find the doc comment for a method > that's been discovered through go/types: > > https://play.golang.org/p/POH1FwOCsZ -- You received this mess

Re: [go-nuts] type-embeded consts and variables request

2016-09-27 Thread Ally Dale
Thanks for replying. But I'm sorry for perhaps I haven't describ clear enough. The puzzle I have face to is that I HAVE TO create a new Duration type, and HAVE TO inherit all methods and constants from std.time.Duration. Because my DEMAND is to inherit and expand std.time.Duration and to hide std

[go-nuts] Re: dialing a name with multiple addresses

2016-09-27 Thread anmol via golang-nuts
I understand now. If the first IP fails, it uses the next one and so on until it runs out of IPs or the timeout occurs. On Tuesday, September 27, 2016 at 5:23:18 PM UTC-4, Anmol Sethi wrote: > > For https://godoc.org/net#Dialer , it says "When dialing a name with > multiple IP addresses, the tim

[go-nuts] Re: Set ldflags for vendor dependency

2016-09-27 Thread mhhcbon
What if for some reason i have to write the value like this within the code (...), var SomeVariable = "some"+"what" ldflags will be able to operate ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop recei

[go-nuts] json inline

2016-09-27 Thread Nick Leli
After inspecting some Kubernetes code , I see the json `inline` used throughout to create persistent structs. This topic appears to be a proposal

[go-nuts] dialing a name with multiple addresses

2016-09-27 Thread 'Anmol Sethi' via golang-nuts
For https://godoc.org/net#Dialer , it says "When dialing a name with multiple IP addresses, the timeout may be divided between them." Why? Wouldn't the name still be resolved to a single IP? E.g. if I have 5 IPs for example.com, one would be selected and used. Why would the timeout need to be div

[go-nuts] Set ldflags for vendor dependency

2016-09-27 Thread mhhcbon
Hi, When below code is imported as "github.com/mh-cbon/mysuperpackage" by some project, package mysuperpackage import ( "whatever" ) var SomeVariable = "" Is this build command correct to set the value of SomeVariable ? go build --ldflags "-X mysuperpackage.SomeVariable=needed" thanks! -

[go-nuts] Win 32bit calling convention

2016-09-27 Thread Luke Mauldin
I am using the steps as detailed at the bottom of this issue https://github.com/golang/go/issues/11058 to create a Go shared library on Windows exposing C function. Right now it is all working compiling in X64. If I also want to make an X32 version of my library, I know I will have to set som

[go-nuts] A simple WebM player with support of VP8/VP9 video and Vorbis/Opus audio.

2016-09-27 Thread Maxim Kupriianov
Hi folks, just a project of a weekend, I've implemented a WebM player that's based on libvpx bindings an that actually decodes the video and audio, not a shortcut for ffmpeg. While being still poor on audio sync after seeking, it works just good enough to show how bindings for large C libs can

Re: [go-nuts] Mocking os.Open and related calls for more code coverage

2016-09-27 Thread Konstantin Khomoutov
On Tue, 27 Sep 2016 18:30:04 + Edward Muller wrote: > One option is to adjust the method to take an io.ReadCloser instead > of a path so you could pass in anything that supported the > io.ReadCloser interface (which is easily adapted to via > ioutil.NoCloser(io.Reader)). A minor typo correct

Re: [go-nuts] Mocking os.Open and related calls for more code coverage

2016-09-27 Thread Edward Muller
One option is to adjust the method to take an io.ReadCloser instead of a path so you could pass in anything that supported the io.ReadCloser interface (which is easily adapted to via ioutil.NoCloser(io.Reader)). Another option is to generate a temporary file with data you want to test with and pas

[go-nuts] Re: [Open sourced] Workflow based REST Api framework - "florest"

2016-09-27 Thread DM
It seems there is a typo in the README Try:- go get github.com/jabong/florest-core/*src*/examples On Tuesday, 27 September 2016 20:17:18 UTC+5:30, parais...@gmail.com wrote: > > Reading the doc , trying to reproduce the instructions : > > go get -u github.com/jabong/florest-core/examples > pac

[go-nuts] Mocking os.Open and related calls for more code coverage

2016-09-27 Thread obourdon
Hello may be it is a trivial question but I could not find any usable answer to the following requirement therefore I thought that surely some of you have the answer Let's assume I have some code like follows: func (obj *myObjStruct) MyFn(fsPath string) (myRetType, error) { cpath := path.Jo

[go-nuts] Re: [Open sourced] Workflow based REST Api framework - "florest"

2016-09-27 Thread paraiso . marc
Reading the doc , trying to reproduce the instructions : go get -u github.com/jabong/florest-core/examples package github.com/jabong/florest-core/examples: cannot find package "github.com/jabong/florest-core/examples" in any o But that package isn't go gettable at first place anyway. Le ma

[go-nuts] Re: HTTP2 from net.Listener?

2016-09-27 Thread roger peppe
On 27 September 2016 at 13:30, roger peppe wrote: > I'm almost certainly missing something (apologies for the > stupid question if so), but at the moment > I don't see a way that, given a net.Listener, I can > serve HTTP2 using net/http. As usual, I was indeed missing something trivial. It seems

[go-nuts] No timeout mechanism with the Request.Body.Read

2016-09-27 Thread Song Liu
http.Server.ReadTimeout is per the whole Read quest, but I need the timeout for a single Request.Body.Read. What need to do ? thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr

[go-nuts] CQRS reference implementation and Client for GetEventStore released

2016-09-27 Thread JetB
Hi All, While developing a project over the last several months using CQRS and EventSourcing, I have created a client for GetEventStore and a CQRS reference implementation which I have released as open source with permissive licensing. I would like to thank Egon Elbre especially for some feedb

[go-nuts] HTTP2 from net.Listener?

2016-09-27 Thread roger peppe
I'm almost certainly missing something (apologies for the stupid question if so), but at the moment I don't see a way that, given a net.Listener, I can serve HTTP2 using net/http. Specifically, is it possible to implement this function: func serveHTTPTLS(lis net.Listener, h http.Handler, cfg

Re: [go-nuts] getting method comments from a package

2016-09-27 Thread roger peppe
A slightly different problem, but you might be interested in this code that I use to find the doc comment for a method that's been discovered through go/types: https://play.golang.org/p/POH1FwOCsZ On 27 September 2016 at 01:46, Dan Kortschak wrote: > Is there a nicer way to do this than what I h

[go-nuts] [Open sourced] Workflow based REST Api framework - "florest"

2016-09-27 Thread subahjit
Hi All, Please check this https://github.com/jabong/florest-core. Thanks. -- 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.co

Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-27 Thread Ian Davis
On Fri, Sep 23, 2016, at 08:03 AM, Ahmy Yulrizka wrote: > I understand that, I dont either. But what's the idea behind not > having it at the first place? Is there more to it other than make it > more simple? One possibility is that it reduces the number of allocations (for storing frame pointers)

[go-nuts] Re: google fuscia and golang and seem to be good mates

2016-09-27 Thread Joe Blue
https://github.com/golang/go/tree/master/src/os Does not include fuchsia yet... Hmm.. On Tuesday, September 27, 2016 at 9:17:29 AM UTC+2, Joe Blue wrote: > > > https://fuchsia.googlesource.com/third_party/go/+/ad10017bebbc65f67306a3b75d7642e14e773e80/src/os/ > > > I found this as i was playing wi

[go-nuts] google fuscia and golang and seem to be good mates

2016-09-27 Thread Joe Blue
https://fuchsia.googlesource.com/third_party/go/+/ad10017bebbc65f67306a3b75d7642e14e773e80/src/os/ I found this as i was playing with flutter and golang. I wonder .., but have no idea what they are up to -- You received this message because you are subscribed to the Google Groups "golang