Re: [go-nuts] Running commands via SSH

2016-11-26 Thread Ayan George
kburke...@gmail.com wrote: > Hi, I'd like to SSH to a remote host and run an arbitrary command. I found > this pretty difficult to do with existing Go libraries. > > The first problem I had was around escaping; commands run locally are > appropriately escaped but I found it difficult to get the

[go-nuts] Deleting the /r/golang subreddit

2016-11-26 Thread as . utf8
I don't use the site, nor understand how any immediate conflicts of interest can manifest based on the CEO's actions that justify removing the subreddit or locking it down. Why not add a community to the official golang.org site and let the subreddit die of natural causes? It would be a favorab

Re: [go-nuts] CFG for a Go program

2016-11-26 Thread 'Keith Randall' via golang-nuts
You can get the CFG (control flow graph) for a function by setting the environment variable GOSSAFUNC to the function in question when building. It will generate a file named ssa.html in the current directory which you can load into a browser. It doesn't draw the CFG explicitly but the nodes (b

Re: [go-nuts] Question about flow of context

2016-11-26 Thread roger peppe
Conventionally context is passed as the first argument to function and method calls. I'm not sure what you mean by "inner facet" there. On 25 Nov 2016 16:58, "Diego Bernardes" wrote: > Got one question about the design of some packages using the new 'context' > in golang. Let's assume we have a

Re: [go-nuts] Do Go Routines use continuations to allow yelding?

2016-11-26 Thread Jan Mercl
On Sat, Nov 26, 2016 at 8:32 PM Olivier El Mekki wrote: > Am i correct to assume from previous messages that if I use MAX_PROCS=1 and don't use channels, my functions will run from start to end in the order they've been piled up using the `go` keyword? No, sorry, the language specification does

[go-nuts] Re: Error Handling

2016-11-26 Thread Christophe Meessen
Just for clarification, the function fn() must return an interface for this to work. -- 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...@goo

Re: [go-nuts] Do Go Routines use continuations to allow yelding?

2016-11-26 Thread Olivier El Mekki
Am i correct to assume from previous messages that if I use MAX_PROCS=1 and don't use channels, my functions will run from start to end in the order they've been piled up using the `go` keyword? This could yield interesting properties, because this means that even using channels, maybe we could

Re: [go-nuts] Running commands via SSH

2016-11-26 Thread Shawn Milochik
It works for me (over ssh) when I run this string as the command: `echo 'zdUZUKv{<&MsZG'` Use backticks for the string literal, then enclose your argument string in single-quotes. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Running commands via SSH

2016-11-26 Thread kburkeorg
Hi, I'd like to SSH to a remote host and run an arbitrary command. I found this pretty difficult to do with existing Go libraries. The first problem I had was around escaping; commands run locally are appropriately escaped but I found it difficult to get the right escaping for commands run remo

Re: [go-nuts] CFG for a Go program

2016-11-26 Thread Michael Jones
I had the same reaction. More of a riddle than a question. If CFG means Context Free Grammar, then how could it be something of a program rather than of the language? if CFG means Configuration File, then the programming language would have nothing to do with the quest for the file, which would b