[go-nuts] Windows service that can update gitlab windows runners (and itself)

2016-10-07 Thread Flowerinthenight
We are using this in our CI environment which is mostly Windows. https://github.com/flowerinthenight/holly -- 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

[go-nuts] A full GP solution of golang——"gogp" 3.0.0.final released

2016-10-07 Thread Ally Dale
Hello, everyone, It is my pleasure to announce that my GP solution of golang——"gogp" has published its final release: 3.0.0.final. You can find the project here: https://github.com/vipally/gogp This project was born from January 2014. This is the final release unless there are more good ideas or G

Re: [go-nuts] MSACCESS with Go ?

2016-10-07 Thread Konstantin Khomoutov
On Thu, 6 Oct 2016 20:24:47 + (UTC) wilk wrote: > I know... but i must access to MSACCESS database. I would like to use > Go instead of Python. > I found alexbrainman/odbc and it works. I found some litle issues > that I submited to the project but I think I can workaround. > > Before I cont

[go-nuts] A full GP solution of golang——"gogp" 3.0.0.final released

2016-10-07 Thread Dave Cheney
What is a GP solution? -- 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.com. For more options, visit https://groups.google.com

[go-nuts] Listen to and redirect outgoing Http/Https requests

2016-10-07 Thread djaafrinacer
I'm trying to make a GoLang program, that logs every outgoing http/https request when it runs on the computer, for example, when it's running it on my computer, when I open a browser and openhttp://example.com, it logs it. An appreciated extra would be a way to redirect some unwanted website

Re: [go-nuts] Listen to and redirect outgoing Http/Https requests

2016-10-07 Thread Jonathan Yu
It sounds like you could borrow the technique used by Fiddler: implement a proxy and configure system browsers to use the proxy (this seems easier on Windows, which has a system-wide proxy configuration). This would require generating and installing certificates to the system trust store so that yo

Re: [go-nuts] incomplete stack trace

2016-10-07 Thread Ian Lance Taylor
On Thu, Oct 6, 2016 at 10:38 PM, Dan Kortschak wrote: > I have just been given the following stack trace for a program I working > on. The trace terminates before it gets into my program, making it's > utility close to zero. Does anyone have any idea why it is not extending > into main? > > $ go b

Re: [go-nuts] Single instance of program

2016-10-07 Thread Manlio Perillo
Il giorno giovedì 6 ottobre 2016 18:40:42 UTC+2, Ian Lance Taylor ha scritto: > > On Thu, Oct 6, 2016 at 8:28 AM, Manlio Perillo > wrote: > > Il giorno giovedì 6 ottobre 2016 03:13:32 UTC+2, Dave Cheney ha scritto: > >> > >> Stick an @ at the start of the file name, or the socket will remain o

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

2016-10-07 Thread Mathieu Lonjaret
out of curiosity, do you envision a way to make something based on gorram net/http Get http://foo.org "Just Work"? (i.e. it would get you what the user is most likely interested in: the resp.Body) I must admit it's the first thing I tried as it would have been a gorram fun replacement for curl.

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] Should golang.org/x/crypto/ssh.ParsePrivateKey() be extended to parse encrypted keys?

2016-10-07 Thread Pietro Gagliardi
While waiting for some long-running automated tasks at work to complete, I passed the time by writing a simple program using github.com/pkg/sftp to automate dumping the latest backups from our backup server onto my computer for using them to test other parts of our

[go-nuts] Re: create a .rpm file for go app.

2016-10-07 Thread Lars Lehtonen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's a bummer that you need to wade into the Ruby ecosystem, but I too have had good results with fpm. - --- Lars Lehtonen -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEcBAEBAgAGBQJX934JAAoJEIE31HTrywTyjqwIAJ9Tdb40XknWmzMlYDFqzXqF 0zoMyXPUVBCfo8

[go-nuts] fmt.Printf not respecting String() method of elements of a struct

2016-10-07 Thread sbkim via golang-nuts
Hello group, If an operand of fmt.Printf implements method String() string, fmt.Printf respects it and uses it. But it doesn't if an operand is a a struct that has such an element. For example, https://play.golang.org/p/QJC7Q9Kpch: package main import "fmt" type Int int func (i Int) String()

[go-nuts] tidy way to write a repeat-until in golang

2016-10-07 Thread xiiophen
Any suggestions on a way to write a repeat until loop equivalent in golang that looks tidy currently I do : ib := true for i := a.X; i != b.X || ib; i = i + b.X - a.X { ib = false //stuff } for loops that need to be executed once under all conditions.. maybe there's neater or better way ?

[go-nuts] Re: tidy way to write a repeat-until in golang

2016-10-07 Thread Jonathan
for i := a.X;; i = i + b.X - a.X { //stuff if i != b.x { break } } On Friday, October 7, 2016 at 7:25:02 PM UTC-4, xiio...@gmail.com wrote: > > Any suggestions on a way to write a repeat until loo

Re: [go-nuts] Re: Make template.Execute write output to a string

2016-10-07 Thread m4ltos
thanks ! On Wednesday, May 2, 2012 at 3:04:35 PM UTC-4, Sankar wrote: > > On Thu, May 3, 2012 at 12:28 AM, Russ Cox > > wrote: > > On Wed, May 2, 2012 at 2:24 PM, Sankar P > wrote: > >> var doc bytes.Buffer > >> t.Execute(&doc, survey) > >> s := doc.String() > > > > It will work even

Re: [go-nuts] Re: tidy way to write a repeat-until in golang

2016-10-07 Thread Michael Jones
It is a significant frustration for me, actually. What I do is to leave out the test completely at the top and put it at the bottom , Just as you show. Comes up often in linked-list traversal and math code. From: on behalf of Jonathan Date: Friday, October 7, 2016 at 4:44 PM To: golang-

Re: [go-nuts] fmt.Printf not respecting String() method of elements of a struct

2016-10-07 Thread Ian Lance Taylor
On Fri, Oct 7, 2016 at 4:18 PM, sbkim via golang-nuts wrote: > > If an operand of fmt.Printf implements method String() string, fmt.Printf > respects it and uses it. > But it doesn't if an operand is a a struct that has such an element. > > For example, https://play.golang.org/p/QJC7Q9Kpch: > pack

Re: [go-nuts] tidy way to write a repeat-until in golang

2016-10-07 Thread Jonathan Cronin
> On Oct 7, 2016, at 7:55 PM, Michael Jones wrote: > > It is a significant frustration for me, actually. Yup. I feel like I waste time writing clear code for this case, because I spend time thinking how to avoid the bottom test. (And I forgot to invert the test for the if clause.) > What I

Re: [go-nuts] incomplete stack trace

2016-10-07 Thread Dan Kortschak
Thanks, Ian. On Fri, 2016-10-07 at 07:05 -0700, Ian Lance Taylor wrote: > > This is a case where the default traceback is letting you down, > because the failing goroutine was started by the os/exec package.  > You > want to set GOTRACEBACK=all to get more useful data. > > Ian -- You received

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/"/>

[go-nuts] function argument type pointer in place of 2 actual arguments?

2016-10-07 Thread David Luu
>From http://www.gorillatoolkit.org/pkg/rpc for implementing a particular method that does RPC The method has three arguments: *http.Request, *args, *reply. > But if the arg's that are supposed to be passed to the method are: arg 1 - a string arg 2 - an array of any type ( which I believe in g

Re: [go-nuts] Re: .net core vs go

2016-10-07 Thread francoishill11
Hi Sotirios I have always been someone trying to balance out the "developer productivity" vs "runtime efficiency". By only using a coding language/framework because you can code much quicker in it is almost 99% of the time going to bite you in the *** later. Sure if you just want to "prototype