Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-19 Thread andrey mirtchovski
Having an option to link to old docs on golang.org (say golang.org/pkg/something?tag=1.6.0) will result in people linking to that option, crawlers storing that option, search engines pointing to that option, and articles, help information and whatever else online pinning themselves to that option.

Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-19 Thread Ignacio Gómez
I think this old discussion about dropping support for ARMv5 (https://github.com/golang/go/issues/17082) makes a point for having docs for older Go versions. It's not always a matter of laziness, sometimes there's no choice. Yeah, the poor lad inheriting a legacy system may and probably will ha

Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-19 Thread Florin Pățan
I think this would further encourage people to be lazy and not upgrade to newer Go versions. This always leads to problems, especially when things like tooling is involved, and especially when the debugger side of Go improved so much between versions. I always liked the fact that Go only shows

Re: [go-nuts] turning a /proc/$pid/stat startTime into "seconds since this process started"

2018-01-19 Thread Andrew Hammond
I punted and just did clockTicksPerSecond := float64(100) since I couldn't get this to build correctly. It's supposed to be a statically linked binary in a docker scratch container. Close enough, I guess. On Thursday, January 18, 2018 at 7:45:14 PM UTC-8, Caleb Spare wrote: > > You can do it wit

[go-nuts] Is it possible to determine total number of bytes read/written for an HTTP request? (including headers)

2018-01-19 Thread aroman
I'm interested in tracking total bandwidth on a per-request basis. It's easy to intercept the ResponseWriter and track the number of bytes sent out for the response body, and it's easy to intercept the Request.Body to count the number of bytes read from the remote source, but both of these igno

[go-nuts] Re: [ANN] ztdns: A simple DNS server for ZeroTier Virtual Networks

2018-01-19 Thread edlitmus
I just wanted to thank you for this! While I'm not using it (directly), I am making use of your ztapi code in my own project. Well done! On Friday, June 16, 2017 at 8:27:31 PM UTC-7, Aaryn Smith wrote: > > I'd like to announce my first open source project, ztdns: A simple DNS > server for a Zer

Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-19 Thread Ian Lance Taylor
On Fri, Jan 19, 2018 at 9:49 AM, derek wrote: > On Thu, Jan 18, 2018 at 7:39 PM, Ian Lance Taylor wrote: >>> Like for Nodejs, and Python and many other language has permanent >>> archived docs for olders versions: >>> >>> https://nodejs.org/docs/v8.4.0/api/http2.html is permanent URL for >>> no

Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-19 Thread derek
On Thu, Jan 18, 2018 at 7:39 PM, Ian Lance Taylor wrote: >> Like for Nodejs, and Python and many other language has permanent >> archived docs for olders versions: >> >> https://nodejs.org/docs/v8.4.0/api/http2.html is permanent URL for >> nodejs v8.4.0 >> >> https://nodejs.org/api/http2.html

[go-nuts] how to detect in go that connection is closed without interfering into it (reading or writing data)

2018-01-19 Thread Sergey Naumov
Hi All. I see https://github.com/golang/go/issues/10940 issue that relates to my problem, and it looks like I must read from / write to a connetion to check whether it is alive, but want to ask if something get changed since this bug was closed without a fix. A bit of context: I'm dialing to

Re: [go-nuts] Using reflect to call functions on struct members

2018-01-19 Thread jake6502
I think this 40 second snippet of a talk by Rob Pike is apropos. It is not specific to your case, but speaks of reflection in general. On Thursday, January 18, 2018 at 5:20:26 PM UTC-5, Boone Severson wrote: > > Ok, asked a

[go-nuts] Re: go build issue with 1.9 version

2018-01-19 Thread desaiabhijit
removed/uninstalled older version from mac which I installed by brew from /usr/local/go then downloaded tar and extracted to same folder from https://golang.org/dl/ setup path and goroot folders accordingly https://golang.org/doc/install basically manual installation rather than brew hope it wil

Re: [go-nuts] study go package

2018-01-19 Thread matthewjuran
Looking at popular Go repositories on github may be a good source: https://github.com/search?l=Go&o=desc&q=golang&s=stars&type=Repositories&utf8=%E2%9C%93 Matt On Friday, January 19, 2018 at 7:56:33 AM UTC-6, Chris Hopkins wrote: > > Agreed. > I found the standard library and ioutil in particul

[go-nuts] Re: Go schedule latency issue

2018-01-19 Thread matthewjuran
It looks like MacOS had CPU PM options removed from pmset in the last few years, so I’m not sure it’s possible to disable in recent versions. On Ubuntu I was able to get cpufrequtils to work a few months ago: https://askubuntu.com/questions/523640/how-i-can-disable-cpu-frequency-scaling-and-set-

Re: [go-nuts] study go package

2018-01-19 Thread Chris Hopkins
Agreed. I found the standard library and ioutil in particular a good start. YMMV. On Friday, 19 January 2018 13:03:52 UTC, Gianguido Sorà wrote: > > I think that the Go source code itself is among the best sources of good > practices and well-written Go. > > Il 19 gen 2018 13:52, "Keith Brown" >

[go-nuts] Re: go build issue with 1.9 version

2018-01-19 Thread wstl89
could you share how you solved this issue? 在 2017年12月6日星期三 UTC+8下午9:13:08,Abhijit Desai写道: > > it's sorted.. freshly installed > > On Wednesday, December 6, 2017 at 4:57:21 PM UTC+4, Abhijit Desai wrote: >> >> getting below issue while building on Mac.. please help >> >> >> >> go build myapp.go >>

Re: [go-nuts] study go package

2018-01-19 Thread Gianguido Sorà
I think that the Go source code itself is among the best sources of good practices and well-written Go. Il 19 gen 2018 13:52, "Keith Brown" ha scritto: > I want to pick up good practices when developing my go code. Is there a > package which I can study and comprehend for newbies? I mainly use >

Re: [go-nuts] Re: iconvg: a compact, binary format for simple vector graphics

2018-01-19 Thread Eric Boucher
Ok, thanks for your answer. As I need something really simple and lightweight, I'll probably end up writing my own format :-) Regards -- 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

[go-nuts] study go package

2018-01-19 Thread Keith Brown
I want to pick up good practices when developing my go code. Is there a package which I can study and comprehend for newbies? I mainly use effective go but would like to see more examples of good software/code design layout. BTW, in Python I always followed twisted as my examples for testing,