Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-23 Thread alex . besogonov
Debugging. For example, if I have a deadlocked request I might want to attach with a debugger and find where exactly it's stuck. Right now this is complicated, you have to examine stacks of all goroutines to find the correct one. On Friday, November 23, 2018 at 9:24:42 PM UTC-8, Andrei Avram

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-23 Thread Andrei Avram
What's the need for this? -- 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

[go-nuts] What's the difference between interface{} and *interface{}

2018-11-23 Thread 'yinbingjun' via golang-nuts
What's the difference between interface{} and *interface{} -- 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

[go-nuts] Re: go language sensitive editor?

2018-11-23 Thread Jeremiah James
A vote for Goland from me. -- 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

Re: [go-nuts] GoAWK: an AWK interpreter written in Go

2018-11-23 Thread Tong Sun
On Saturday, November 17, 2018 at 12:44:57 PM UTC-5, Ben Hoyt wrote: > > > https://benhoyt.com/writings/goawk/ > > > It's pretty much a toy project, not being used for anything

Re: [go-nuts] does struct pointer *a == *b make sense?

2018-11-23 Thread Space A.
true: a := {Name:"test", Child: {Name: "blah", Child: nil}} b :={Name:"test", Child: a.Child} and it's not "childs" пятница, 23 ноября 2018 г., 6:20:31 UTC+3 пользователь Jesse McNelis написал: > > On Fri, Nov 23, 2018 at 2:06 PM Youqi yu > wrote: > > > > type T { > > Name string > >

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-23 Thread alex . besogonov
For example, you might want to annotate the goroutine with a request ID. On Friday, November 23, 2018 at 1:07:49 AM UTC-8, Jan Mercl wrote: > > On Fri, Nov 23, 2018 at 8:53 AM > > wrote: > > > That won't work if you want to create the name dynamically. > > Please explain what "to create the

Re: [go-nuts] Re: go language sensitive editor?

2018-11-23 Thread Jay Ts
Hi Rob, Thanks for the link to that talk. I had many of the same early experiences, including using an IBM keypunch and interacting with an IBM 360 (programming in APL) over a modem line. My first programming job was in 1981 on a VAX11/780 running UNIX/32V (with 7th edition manuals) in the

Re: [go-nuts] Re: GoAWK: an AWK interpreter written in Go

2018-11-23 Thread Ben Hoyt
> Once you have some proper benchmarks, it might be fun to compare GoAWK's >>> performance to that of my awk package . >>> >> I'm not going to do thorough benchmarks at this point, but it looks like GoAWK is significantly faster at present. Using the example in the

Re: [go-nuts] Simple Go http daemon under systemd

2018-11-23 Thread Tong Sun
On Fri, Nov 23, 2018 at 3:03 PM Diego Medina wrote: > that endpoint returns no html just because I don't need it, but the status > 200 is there to tell me the app is running > > a go deamon is just a go binary, nothing special > > systemd works fine with any go binary that serves http >

Re: [go-nuts] Simple Go http daemon under systemd

2018-11-23 Thread Diego Medina
> I'm not looking for an service/socket example, if the service part is in reference to the repo I posted, where I said service, you can just assume I said an http endpoint you can visit with your browser, and it will return a status code, like curl -v https://mrwilson.one/status * Trying

Re: [go-nuts] Simple Go http daemon under systemd

2018-11-23 Thread Tong Sun
[resending, sorry sam] On Fri, Nov 23, 2018 at 10:50 AM Sam Whited wrote: > On Thu, Nov 22, 2018, at 21:14, Tong Sun wrote: > > and it needs to be working under systemd. > > … > > but there is no mentioning of how it can work under systemd, which could > > be > > troublesome, > > like the

[go-nuts] modules+plugins+vendoring=restrictive

2018-11-23 Thread Olivier Szika
Hi, Using plugins with modules has become very restrictive. All common dependencies between plugins and binary that loads them, must be exactly at the same version. With GOPATH, to avoid that, we can use vendoring because import paths are rewritten. (Ex: gopkg.yaml.v2 is rewritten to

Re: [go-nuts] Re: do you use binary-only packages?

2018-11-23 Thread smallaitt
Well, I do need it that in our company, I need to provide the binary-package to other developers to protect my source code. 在 2018年10月19日星期五 UTC+8上午8:13:01,Tharaneedharan Vilwanathan写道: > > Hi Ian, > > Good question. I don't have an answer. > > But this raises some questions: > > Should Go be

Re: [go-nuts] Re: go language sensitive editor?

2018-11-23 Thread Nathan Fisher
Agree on this. Gorename and gofmt etc provide only a small subset of what is on GoLands roadmap. I toggle between vs code, vim(-go), and GoLand. There’s bits I like about all 3 but if I had to choose only one I’d probably go with GoLand. On Tue, Nov 20, 2018 at 20:24, robert engels wrote: > I

[go-nuts] Re: go language sensitive editor?

2018-11-23 Thread Serge Voilokov
Tong, No, no plans to PR for a while since I implemented the features directly in the source tree. I need to think how to wrap them as plugins for dynamic download. On Thursday, November 22, 2018 at 10:41:47 PM UTC-5, Tong Sun wrote: > > Nice added features Serge. > > Any plan to PR them back,

Re: [go-nuts] Simple Go http daemon under systemd

2018-11-23 Thread Sam Whited
On Thu, Nov 22, 2018, at 21:14, Tong Sun wrote: > and it needs to be working under systemd. > … > but there is no mentioning of how it can work under systemd, which could > be > troublesome, > like the question I found at why systemd cannot start golang web app >

[go-nuts] Re: Distributed MapReduce in Go, is it possible?

2018-11-23 Thread Mandolyte
see https://github.com/chrislusf/glow and https://github.com/chrislusf/gleam On Thursday, November 22, 2018 at 3:32:51 PM UTC-5, yahiah...@gmail.com wrote: > > Hi how are you can you help me I need distributed mapreduce code for > golan > Thank you -- You received this message because

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-23 Thread Jan Mercl
On Fri, Nov 23, 2018 at 8:53 AM wrote: > That won't work if you want to create the name dynamically. Please explain what "to create the name dynamically" stands for. -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from