Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-11 Thread Nate Finch
Next on my list is adding versioning to the generated scripts so you never have to worry about whether a script is old or not. Also note that I added -t so you can print out different parts of the respond if you want, e.g. $ gorram -t {{.Status}} net/http Get https://golang.org 200 OK On

Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-11 Thread Mathieu Lonjaret
aha! that was it, thanks. On 11 October 2016 at 18:16, Edward Muller wrote: > gorram -r <...> > > On Mon, Oct 10, 2016 at 3:02 PM Mathieu Lonjaret > wrote: >> >> Looks shiny! >> But is there some sort of cache I have to clear? I've just

Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-11 Thread Edward Muller
gorram -r <...> On Mon, Oct 10, 2016 at 3:02 PM Mathieu Lonjaret wrote: > Looks shiny! > But is there some sort of cache I have to clear? I've just updated and > rebuilt, and I still get the old behaviour. > > > On 8 October 2016 at 04:05, Nate Finch

Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-10 Thread Mathieu Lonjaret
Looks shiny! But is there some sort of cache I have to clear? I've just updated and rebuilt, and I still get the old behaviour. On 8 October 2016 at 04:05, Nate Finch wrote: > ...and now it works like you'd hope :) > > > $ gorram net/http Get https://npf.io/gorram/run >

Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-07 Thread Nate Finch
...and now it works like you'd hope :) $ gorram net/http Get https://npf.io/gorram/run https://npf.io/gorram/"/>https://npf.io/gorram/; /> or if you want to get fancy: $ gorram net/http Get https://npf.io/gorram/run | gorram github.com/yosssi/gohtml Format https://npf.io/gorram/"/>

Re: [go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-07 Thread Nate Finch
It was one of my first thoughts, too. So, just for those who haven't tried it... it does work, technically - $ gorram net/http Get https://google.com &{200 OK 200 HTTP/2.0 2 0 map[Cache-Control:[private, max-age=0] Content-Type:[text/html; charset=ISO-8859-1] X-Xss-Protection:[1; mode=block]

[go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-05 Thread Nate Finch
Glad you think so :) Suggestions and bugs welcome. It's under active development, and I know some things don't work right now (like variadic functions), but I'd like to make it work with as wide a swath of go functions as I can :) And I think that, since there's such a strong culture of

[go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-05 Thread sethamclean
That is... awesome... On Monday, October 3, 2016 at 5:00:34 PM UTC-4, Nate Finch wrote: > > get it via the canonical import path: > > go get npf.io/gorram > > > Code is at https://github.com/natefinch/gorram > > > Still a work in progress, but fun to play around with right now. > > Lets you do