[go-nuts] Is "When in doubt, use a pointer receiver" misleading advice?

2023-11-13 Thread 'Brad Johnson' via golang-nuts
Google's style guide is a popular reference for Go programmers. In it, they list off a number of scenarios where one would use a value receiver vs a pointer receiver. But, ultimately, they end the list with "when in doubt, use a pointer receiver". In my experience, I've noticed the majority of

Re: [go-nuts] Re: Go 1.16 is released

2021-02-16 Thread Brad Fitzpatrick
Elaborate? On Tue, Feb 16, 2021 at 12:34 PM Peter Kleiweg wrote: > `go get` is broken. It doesn't download packages. > > Op dinsdag 16 februari 2021 om 20:56:37 UTC+1 schreef Alex Rakoczy: > >> Hello gophers, >> >> We just released Go 1.16 >> >> To find out what has changed in Go 1.16, read the

[go-nuts] Re: How can I fork a module that uses /internal ?

2020-07-25 Thread Brad Beveridge
Thank you very much! I have no idea why I thought I needed to change go.mod. I did run into some strange effects changing my local version back to "sclevine" though - I also needed to remove the cached versions in *go/pkg*. Thanks again! Brad On Sunday, 26 July 2020 at 13:03:22 UT

[go-nuts] How can I fork a module that uses /internal ?

2020-07-25 Thread brad . beveridge
the replace directive is working, but is being disallowed for "/internal" packages. What is the correct way to fork this module please? Thanks, Brad -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Re: Vue-inspired library with Go+WebAssembly

2019-03-29 Thread Brad
nk I spoke to soon. I don't think what you have is an > alternative to Lorca, but an alternative to Vue.js *(which might still be > interesting.)* > > *Whoever is moderating **if you see this in time **please just delete > both messages.* > > On Friday, March 29, 2019 a

[go-nuts] Vue-inspired library with Go+WebAssembly

2019-03-28 Thread Brad
Rapid prototyping * ~3 minute setup * Standard Go build tools I'm curious what people think of the approach and ideas for improvement. --brad -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

Re: [go-nuts] Removing Go's nacl port

2019-03-19 Thread Brad Fitzpatrick
-19 at 11:22 -0700, Brad Fitzpatrick wrote: > > We plan to remove Go's Native Client (nacl) port, probably in Go > > 1.14. > > (It's probably too soon to remove it in Go 1.13) > > > > Is anybody using it? If so, how? > > > > We currently use it for th

[go-nuts] Removing Go's nacl port

2019-03-19 Thread Brad Fitzpatrick
We plan to remove Go's Native Client (nacl) port, probably in Go 1.14. (It's probably too soon to remove it in Go 1.13) Is anybody using it? If so, how? We currently use it for the playground (at play.golang.org) but the plan is to move that to run linux/amd64 binaries under gvisor. We suspect w

[go-nuts] Re: [golang-dev] database/sql changes and proposals

2019-02-13 Thread Brad Fitzpatrick
Thanks for setting this up! On Tue, Feb 12, 2019 at 4:33 PM Daniel Theophanes wrote: > In order to help keep database/sql driver developers and the maintainers > of database/sql on the same page, I'm going to start to posting issues and > proposals to the following group: > > https://groups.goo

Re: [go-nuts] Re: All the Go project history, live in RAM

2018-04-14 Thread Brad Fitzpatrick
Yeah, I think that should work. IIRC, the cache files aren't appended to, but atomically rewritten & replaced. So running two on the same filesystem will waste a bit of network & disk I/O, but it should be correct. On Sat, Apr 14, 2018 at 5:25 PM, Dmitri Shuralyov wrote: &g

[go-nuts] Custom Go Playground using Docker for Sandboxing

2018-03-06 Thread Brad
I'm in the middle of building out a Go library that does various things and am considering hosting something similar to Go Playground which can be used to create demos using the library. Two big snags: 1) I of course need to be able to import my packages, and 2) I need sqlite support, which mea

Re: [go-nuts] goimports flag parity with gofmt

2017-12-17 Thread Brad Fitzpatrick
rectory thereof) and then use it from both goimports and gofmt, which would additionally require vendoring the simplify package into std. On Sat, Dec 16, 2017 at 8:50 PM, wrote: > Brad, > > Would you be open to consider a PR to add the "-s" flag support to > goimports? >

[go-nuts] http2 issues with Safari 9 and 10 and EventSource

2017-09-19 Thread Brad Rydzewski
I am encountering an issue with Safari 9 and Safari 10 when using Event Source (server sent events) and http2. The browser opens the connection, immediately closes the connection, and then attempts to reconnect. This repeats in an infinite loop, flooding the server with requests. I was able to

Re: [go-nuts] Re: Go 1.9 Release Candidate 1 is released

2017-07-26 Thread Brad Fitzpatrick
https://tip.golang.org/doc/go1.9 On Wed, Jul 26, 2017 at 7:31 AM, wrote: > Great! > > Unfortunately, the "release notes" section points to the documentation; I > can't find the actual release notes page. > > >> -- > You received this message because you are subscribed to the Google Groups > "go

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
On Thu, Jun 15, 2017 at 8:54 AM, Michael Banzon wrote: > > does this mean that 2.0 is next? > > I gave a talk about that: Slides: https://docs.google.com/presentation/d/1JsCKdK_AvDdn8EkummMNvpo7ntqteWQfynq9hFTCkhQ/view?slide=id.p#slide=id.p Video: https://www.youtube.com/watch?v=4Dr8FXs9aJM

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
On Wed, Jun 14, 2017 at 11:35 PM, Sokolov Yura wrote: > So, no scalable timers in 1.9 ? > https://go-review.googlesource.com/c/34784/15 > It's a pity. Yes. But Aliaksandr hasn't replied to Dmitry for the past 10 days, either. We don't ship code that hasn't made it through code review. -- You

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
If you view the HTML source, the relevant CL numbers are in comments. On Wed, Jun 14, 2017 at 11:02 PM, wrote: > Can someone elaborate more on "Large object allocation performance is > significantly improved in applications using large (>50GB) heaps containing > many large objects."? What PR /

Re: [go-nuts] Re: [golang-dev] Go 1.9 Beta 1 is released

2017-06-14 Thread Brad Fitzpatrick
We use golang.org/x/build/cmd/release On Wed, Jun 14, 2017 at 6:32 PM, Michael Hudson-Doyle < michael.hud...@canonical.com> wrote: > I'm curious how you built your binaries with https://github.com/ > golang/go/issues/20284 still open. Do you not run the tests on the built > binaries before packi

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-14 Thread Brad Fitzpatrick
Correct. https://github.com/golang/go/issues/19082 remains open. See https://dev.golang.org/release for the other bugs not yet fixed. On Wed, Jun 14, 2017 at 5:03 PM, Ben Shi wrote: > still no aarch64 prebuilt binary? > > Ben Shi > > 在 2017年6月15日,06:15,Chris Broadfoot 写道: > > Hello gophers,

Re: [go-nuts] goimports flag parity with gofmt

2017-06-12 Thread Brad Fitzpatrick
code in the same > way. (quotes are mine) > > I think this documentation needs fixing too? > > [1]: https://godoc.org/golang.org/x/tools/cmd/goimports > > -- > Chandra Sekar.S > > On Mon, Jun 12, 2017 at 10:25 PM, Brad Fitzpatrick > wrote: > >> Use the

Re: [go-nuts] goimports flag parity with gofmt

2017-06-12 Thread Brad Fitzpatrick
mports. >> >> gofmt and goimports both had their tab options removed. >> >> But yes, goimports doesn't have cpuprofile, -r, or -s. Not sure how much >> it matters. No editors really use those, do they? If you want to do it by >> hand, gofmt is still there.

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-10 Thread Brad Fitzpatrick
Perhaps the autocert package should special case localhost and just serve a self-signed cert in that case. That'd be useful for testing and consistency. I filed https://github.com/golang/go/issues/20640 to think about that. On Tue, Jun 6, 2017 at 10:22 AM, 'Axel Wagner' via golang-nuts < golang-

Re: [go-nuts] Where can I find golang library for google cloud client library for using service account

2017-06-10 Thread Brad Fitzpatrick
https://godoc.org/golang.org/x/oauth2/google On Fri, Jun 9, 2017 at 5:20 PM, wrote: > I am looking for the client library for Google cloud platform (for > compute/networking, service account etc) equivalent to amazon's > > github.com/aws/aws-sdk-go/service > > for Google cloud platform. > > > A

[go-nuts] Re: [golang-dev] Re: Go 1.8.3 is released

2017-05-25 Thread Brad Fitzpatrick
Thanks. Fixed. We do have a list (internally, since it involves internal steps to sign the installers using Google's signing infrastructure), so I'll make sure this is on it. On Thu, May 25, 2017 at 10:20 AM, wrote: > The Go1.8.2 and Go 1.8.3 milestones on GitHub are still open. If there's a >

[go-nuts] Re: [golang-dev] Golang Developers @ Dallas,TX

2017-05-24 Thread Brad Fitzpatrick
[+golang-nuts, moving golang-dev to bcc] On Wed, May 24, 2017 at 12:59 PM, Amruta Shenolikar Warkad < amruta.shenoli...@gmail.com> wrote: > Hi, > > Looking for Go Developers for a position @ Dallas,TX. Please email resumes > to amruta.war...@resolvetech.com > > -- > You received this message bec

[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 1:38 PM, Dmitri Shuralyov wrote: > Another small question. > > https://godoc.org/golang.org/x/build/maintner#GerritProject.Server says: > > > Server returns the Gerrit server, such as "go.googlesource.com". > > I thought that go.googlesource.com was a Gitiles server, and >

[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 12:57 PM, Dmitri Shuralyov wrote: > The data is generally under 1 second behind reality, thanks to the >> webhook+incoming-SMTP server we run now at https://pubsubhelper.golang. >> org/ to get updates from GitHub & Gerrit. >> > > Just a quick implementation question relate

[go-nuts] All the Go project history, live in RAM

2017-04-30 Thread Brad Fitzpatrick
rg/ to get updates from GitHub & Gerrit. gopherbot now uses this infrastructure. See https://github.com/golang/build/blob/master/cmd/gopherbot/gopherbot.go for some more examples. Thanks to Kevin Burke for all the help & code reviews. - Brad -- You received this message because you are

Re: [go-nuts] Go HTTP/2 behind HAProxy TLS Question

2017-04-09 Thread Brad Fitzpatrick
Why do you need HTTP/2 between HAProxy and Go? That's a low latency connection. Are you doing push promise frames? Do those even transit HAProxy? On Fri, Apr 7, 2017 at 9:56 AM, wrote: > Hello! > > I'm quite new to web development and currently bumped into a problem I > can't wrap my head aro

Re: [go-nuts] Trouble with HTTP PUT, and 100-continue

2017-04-09 Thread Brad Fitzpatrick
See https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout The Go http package deals with 100 continue automatically. On Sat, Apr 8, 2017 at 3:24 PM, David Peacock wrote: > Hi all, > > I'm having difficulty implementing file upload using > http.NewRequest("PUT"). As shown in my use c

Re: [go-nuts] Re: Go 1.8.1 is released

2017-04-07 Thread Brad Fitzpatrick
On Fri, Apr 7, 2017 at 11:16 AM, Nathan Kerr wrote: > Thanks for all the hard work! > > I have updated my go release timeline > visualization. > Neat! -- You received this message because you are subscribed to the Google Groups "golang-

[go-nuts] Re: Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-30 Thread Brad
ve a C header that can be included to implement a 'driver' > for the Go runtime and using the driver as a bridge to the system shared > libraries. > > And then the complicated stuff for Go <-> C could probably be removed from > the runtime and delegate to the C dri

Re: [go-nuts] Re: Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-27 Thread Brad
g at the prior art of gopherjs and Elliot stonehams haxe > based transpiler. > > On 28/03/2017 2:19 PM, "Brad" > wrote: > >> Thanks for all feedback here. It sounds like while there are some >> significant caveats this could work and would have value. I think the

[go-nuts] Re: Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-27 Thread Brad
ds of ever getting around to implementing the second language choice seem fairly low). I will try to find time to rough out some initial stuff on this and will post an update if I get something that looks promising. On Friday, March 24, 2017 at 8:32:20 PM UTC-7, Brad wrote: > > Intere

Re: [go-nuts] Re: Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-25 Thread Brad
My thought was that the translation would be one-way - you would avoid hacking on the C++ part unless you were completely abandoning the Go part. I see the point on the disparity between what it would take to migrate a project to Go vs the effort to build such a project. Although part of my mo

[go-nuts] Go -> C++ transpiler idea: Miracle child or horrible abomination?

2017-03-24 Thread Brad
Interested in any feedback about the idea of making a Go -> C++ transpiler. Here's the rationale: * Go as a language has lots of awesome things that make it highly productive. Lots of Gophers would love to use Go for more projects but some common issues include: * Trying to convince your team

Re: [go-nuts] reading/writing after http.Handler returns

2017-03-03 Thread Brad Fitzpatrick
I'm not sure I understand what the bug report here is. Is this https://github.com/golang/go/issues/16100 ? On Thu, Mar 2, 2017 at 3:06 PM, wrote: > A few weeks ago we implemented a context that given some readClosers and > writeClosers would track if any were idle and eventually cancel the > c

Re: [go-nuts] ssh login failed

2017-02-06 Thread Brad Fitzpatrick
Maybe Han-Wen, copied, knows. On Mon, Feb 6, 2017 at 7:00 PM, Robert Hsiung wrote: > Hi Brad: > Thanks so much for your suggestion. I run "ssh -v" and get useful > information as attachment.So,I modify the code,but occurred the different > problem as below. > s

Re: [go-nuts] ssh login failed

2017-02-06 Thread Brad Fitzpatrick
>From looking at: ssh: unable to authenticate, attempted methods [none], no supported methods remain It seems like your ssh server requires a different authentication mode and doesn't support KeyboardInteractive (a password). Does the standard ssh client work? What does "ssh -v" say? On Mon, F

Re: [go-nuts] Re: Go 1.8 Release Candidate 1 is released

2017-01-10 Thread Brad Fitzpatrick
App Engine has its own release cycle, but they're working on it. On Tue, Jan 10, 2017 at 3:06 PM, go-guy wrote: > Awesome! > > Is there any way that 1.8 can be made available to AppEngine when it's > released? > > On Tuesday, January 10, 2017 at 3:38:03 PM UTC-5, Chris Broadfoot wrote: >> >> He

Re: [go-nuts] Downloading go1

2016-12-02 Thread Brad Fitzpatrick
loads/v2/code.google.com/go/go.go1.windows-amd64.msi > https://storage.googleapis.com/google-code-archive- > downloads/v2/code.google.com/go/go.go1.windows-amd64.zip > > On Fri, Dec 2, 2016 at 4:17 PM, Brad Fitzpatrick > wrote: > >> I've asked for a list of our objects under

Re: [go-nuts] Downloading go1

2016-12-02 Thread Brad Fitzpatrick
I've asked for a list of our objects under that prefix. On Thu, Dec 1, 2016 at 1:56 PM, Edward Muller wrote: > For $reasons I need to download the original linux amd64 version of go1. > > Older go versions are stored under https://storage.googleapis. > com/google-code-archive-downloads/v2/code.

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

2016-11-24 Thread brad clawsie
n anything. > > I probably should've started this thread in private with the other > moderators so I had more information to share when I mailed golang-nuts@. > > > On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick > wrote: > >> In light of the CEO of Reddit a

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

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 9:24 PM, Florian Weimer wrote: > * Brad Fitzpatrick: > > > In light of the CEO of Reddit admitting to editing user comments (see > > dozen news stories today), I propose we delete the /r/golang subreddit. > > > > That is so beyond unet

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

2016-11-24 Thread Brad Fitzpatrick
ed golang-nuts@. On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick wrote: > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immature, I no longer want an

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

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 6:57 PM, Matt Joiner wrote: > I don't believe technical forum moderators should be abusing their > position to project their ethical standpoints onto users. If users don't > like Reddit, they can just not participate. If the moderators don't like > it, step down. > The qu

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

2016-11-24 Thread Brad Fitzpatrick
On Thu, Nov 24, 2016 at 6:57 PM, Nathaniel Nutter wrote: > Are all 25,171 subscribers scum and villainy? As a someone that reads > /r/golang I've somehow managed not to come to the same conclusion. > I never said that. -- You received this message because you are subscribed to the Google Grou

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

2016-11-24 Thread Brad Fitzpatrick
Agreed. Maybe we can just make an auto-reject moderator bot for it, making sure it has no content. On Thu, Nov 24, 2016 at 4:01 PM, Adam Langley wrote: > (If we just delete it, that may free the name to be squatted on by others. > I've no knowledge of how Reddit works but setting a moderation

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

2016-11-24 Thread Brad Fitzpatrick
[+bketelson, dgryski] On Thu, Nov 24, 2016 at 3:53 PM, Brad Fitzpatrick wrote: > In light of the CEO of Reddit admitting to editing user comments (see > dozen news stories today), I propose we delete the /r/golang subreddit. > > That is so beyond unethical and immature, I no

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

2016-11-24 Thread Brad Fitzpatrick
In light of the CEO of Reddit admitting to editing user comments (see dozen news stories today), I propose we delete the /r/golang subreddit. That is so beyond unethical and immature, I no longer want anything to do with that site. I will be deleting my account on Reddit after backing up my conten

Re: [go-nuts] HTTP2 Runtime panic while Migrating an Application from Go 1.4.1 to 1.6.2

2016-10-28 Thread Brad Fitzpatrick
Sounds like you need to understand your defer issue before making any changes or updating versions. On Oct 28, 2016 6:33 AM, "Nigel Vickers" wrote: > Hallo Brad, > > ... thanks for the reply. The original post went under 6 weeks ago and I > had forgotten it, sorry. We cu

Re: [go-nuts] HTTP2 Runtime panic while Migrating an Application from Go 1.4.1 to 1.6.2

2016-10-27 Thread Brad Fitzpatrick
That isn't an http2 panic. That's just the http2 code recovering your Handler's panic and printing it, the same as the http1 server does. Your panic is actually somewhere in: lib.setupC5Tab(0x7f6fbe169d20, 0xc8201b0d20, 0xc820436d98, 0x7f6fbe169d20, 0xc8201b0dc0, 0x7f6fbe16a2a8, 0xc820339e60, 0x7

Re: [go-nuts] Re: Slow compile times

2016-10-05 Thread Brad Fitzpatrick
They're not URLs. They're Go import paths. To make them into links, prefix them with https://godoc.org/ like https://godoc.org/github.com/coreos/etcd/clientv3 On Wed, Oct 5, 2016 at 5:48 PM, 'simon place' via golang-nuts < golang-nuts@googlegroups.com> wrote: > none of those links work for me? >

Re: [go-nuts] Re: exec.Command

2016-10-05 Thread Brad Fitzpatrick
You didn't say how it doesn't work. You need to ask good questions to get good answers. On Wed, Oct 5, 2016 at 6:16 AM, wrote: > but i test this code it does not work! > > Why?? > > > On Wednesday, October 5, 2016 at 2:46:37 AM UTC-7, hadies...@gmail.com > wrote: >> >> hi >> >> in the second ar

Re: [go-nuts] Help: how to add `this` feature to my go source?

2016-09-30 Thread Brad Heller
Not that I agree with the sentiment here, but just for discussion sake: Isn't this a (potentially) good candidate for code generation? Little complex, but... > On Sep 30, 2016, at 10:05 PM, Wang Yarco wrote: > > > how would you end up dealing with your code being unable to compile for > > anyo

Re: [go-nuts] TCP Client can't dial to server on localhost: network is unreachable.

2016-09-22 Thread Brad Fitzpatrick
Use 127.0.0.1, not 127.0.0.0 The playground's net implementation is a toy and not very accurate. On Thu, Sep 22, 2016 at 10:41 AM, 'Константин Иванов' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Related to net package. > > Code works fine on playground: https://play.golang.org/p/1f

Re: [go-nuts] Assigning +Inf to a float32 ..

2016-09-10 Thread Brad Fitzpatrick
Not beautiful, but... https://play.golang.org/p/WWEEJN8LcF func main() { i32 := math.Float32frombits(0x7F80) fmt.Printf("%T = %v", i32, i32) } // float32 = +Inf On Sat, Sep 10, 2016 at 6:55 PM, wrote: > ok I want to assign +Inf as a float32. > > Currently I work around like this : > > p

Re: [go-nuts] os.File re-definition

2016-09-04 Thread Brad Fitzpatrick
Yeah, that'd be a fine cleanup. Want to send a change? I believe a similar cleanup happened to the net.Conn type a number of releases ago. On Sat, Sep 3, 2016 at 3:49 PM, Sridhar wrote: > The os.File type is re-defined across multiple files under src/os for os > specific builds. > > Can this

Re: [go-nuts] Go 1.7 is released

2016-08-16 Thread Brad Fitzpatrick
We a phrase as catchy as "Pics or it didn't happen" for this. "Test or it's not trustworthy"? Needs work. On Tue, Aug 16, 2016 at 2:16 PM, Dave Cheney wrote: > Until it's part of the ./all.bash test suite, it'll continue to break > because it has never been proven to work. > > > On 17 Aug 2016,

Re: [go-nuts] http2 questions

2016-08-11 Thread Brad Fitzpatrick
http.Transports shouldn't be created inside short-lived functions. See the docs on https://golang.org/pkg/net/http/#Transport which say: "By default, Transport caches connections for future re-use. This may leave many open connections when accessing many hosts. This behavior can be managed using T

Re: [go-nuts] rsa.GenerateKey does not return on sepcial bits

2016-08-03 Thread Brad Fitzpatrick
Please file a bug. On Wed, Aug 3, 2016 at 8:20 PM, steve wang wrote: > https://play.golang.org/p/gYYUDxj6Z5 > > Is this an issue? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails

Re: [go-nuts] Server TCP

2016-08-03 Thread Brad Fitzpatrick
What's the "login package"? On Wed, Aug 3, 2016 at 3:12 PM, wrote: > Anyone know why the tcp server closes its connection after of answer the > login package? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this gro

Re: [go-nuts] http.Client returning "http2: no cached connection was available"

2016-08-02 Thread Brad Fitzpatrick
#x27;ll file a bug. > > On Tue, Aug 2, 2016 at 9:51 PM Brad Fitzpatrick > wrote: > >> Sorry, I don't read all of golang-nuts@ and never saw that. You could've >> escalated, though. There are at least two bug trackers available to you: >> >> http://b/ >

Re: [go-nuts] http.Client returning "http2: no cached connection was available"

2016-08-02 Thread Brad Fitzpatrick
Sorry, I don't read all of golang-nuts@ and never saw that. You could've escalated, though. There are at least two bug trackers available to you: http://b/ https://github.com/golang/go/issues (the one I prefer) But I think your interpretation of the the HTTP/2 client is wrong. If you're a video

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-08-01 Thread Brad Fitzpatrick
It used to be. It was rewritten in Go. On Mon, Aug 1, 2016 at 10:44 AM, Nathan LeClaire wrote: > Oh, interesting call out. Thanks Brad. For some reason I assumed pprof > was a more general-purpose tool written in C++. Forget where I may have > read that. > > On Mon, Aug 1, 2

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-08-01 Thread Brad Fitzpatrick
bug report with the output. On Mon, Aug 1, 2016 at 10:10 AM, Nathan LeClaire wrote: > Hey Brad! > > Yes, end users. Generally, we can't make assumptions about what they have > installed locally (e.g. Go toolchain) and I would like to provide a way for > folks to "cl

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread Brad Fitzpatrick
On Sun, Jul 31, 2016 at 9:13 AM, Jan Mercl <0xj...@gmail.com> wrote: > > On Sun, Jul 31, 2016 at 5:44 PM Brad Fitzpatrick > wrote: > > > You should expect at most 10ms pauses for large heaps as of Go 1.6, and > especially in Go 1.7. > > I'm assuming those 10

Re: [go-nuts] Why does Golang disallow compare two interface values if their interface types are not in the superset/subset relation?

2016-07-31 Thread Brad Fitzpatrick
Interface values are comparable. If they have different concrete types, they compare to false. See https://golang.org/ref/spec#Comparison_operators On Sat, Jul 30, 2016 at 10:33 PM, T L wrote: > Is it essential? > > -- > You received this message because you are subscribed to the Google Groups

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread Brad Fitzpatrick
You should expect at most 10ms pauses for large heaps as of Go 1.6, and especially in Go 1.7. See https://talks.golang.org/2016/state-of-go.slide#37 (for Go 1.6; Go 1.7 is more consistently lower) On Sat, Jul 30, 2016 at 8:31 PM, wrote: > I'm starting a proof of concept project to the company

Re: [go-nuts] World Famous Gopher Hole Museum: Alberta Canada

2016-07-30 Thread Brad Fitzpatrick
Now we need Gophercon Calgary (or at least some Meetup there?) so we can all go pilgrimage to that museum. On Fri, Jul 29, 2016 at 9:40 AM, DrGo wrote: > Gophers in the news: > http://www.cbc.ca/shortdocs/shorts/world-famous-gopher > > https://www.youtube.com/watch?v=QGT8XLrYnio > > -- > You rec

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-07-30 Thread Brad Fitzpatrick
Who is your target audience for this? You seem to know how to do it (socat + go tool pprof), which suggests you want end users to do this or something? On Fri, Jul 29, 2016 at 3:43 PM, nathan.leclaire via golang-nuts < golang-nuts@googlegroups.com> wrote: > Hi all, > > I am interested in doing

[go-nuts] Controlling VMware ESXi from Go

2016-07-21 Thread Brad Fitzpatrick
If you have experience controlling VMware ESXi nodes from Go, could you point me at recommended packages? Or API reference? Note: no vCenter, no vSphere management console, no Windows. Only Linux (or OS X), and only the basic level of ESXi. I'm new to all this. Thanks! -- You received this mes

Re: [go-nuts] goimports no longer builds on go 1.4.2

2016-07-20 Thread Brad Fitzpatrick
at 8:00 AM, Sameer Ajmani wrote: > +Brad Fitzpatrick > > On Wed, Jul 20, 2016 at 10:47 AM Jonathan Lawlor < > jonathan.law...@gmail.com> wrote: > >> Obviously 1.4.2 is quite out of date, but I thought it might be useful to >> point out that the change https://go-rev

Re: [go-nuts] [ANN] goimports-update-ignore makes goimports faster, maintains .goimportsignore

2016-07-17 Thread Brad Fitzpatrick
Nice! I got the honor of filing the first feature request: https://github.com/pwaller/goimports-update-ignore/issues/1 :-) On Sat, Jul 16, 2016 at 4:28 AM, Peter Waller wrote: > With , goimports now supports > a mechanism for ignoring non-go-code dir

Re: [go-nuts] Re: goimports has been updated

2016-07-16 Thread Brad Fitzpatrick
Please file a bug. I lose emails. On Sat, Jul 16, 2016 at 1:29 PM, Vince Prignano wrote: > I just noticed that import paths that start with an uppercase letter don't > get imported automatically after the update. > > Looking at the code and > https://github.com/golang/tools/blob/master/imports/

Re: [go-nuts] goimports has been updated

2016-07-15 Thread Brad Fitzpatrick
saw this was merged - this is excellent. > > These latest changes bring the runtime down to 400ms. Wonderful! I had no > idea how much this was interrupting my flow before it was fixed :) > > > On 15 July 2016 at 19:34, Brad Fitzpatrick wrote: >> >> Done: ht

Re: [go-nuts] goimports has been updated

2016-07-15 Thread Brad Fitzpatrick
On Fri, Jul 15, 2016 at 5:47 AM, Peter Waller wrote: > Awesome! > > For me it brings the CPU time from 6.5s to 3s. Wall from 2.9s to 2s. A > noticable improvement. > > One thing that still makes it slow for me (2s instead of 500ms, I just > tested), is that I have several of deep trees which aren

Re: [go-nuts] goimports has been updated

2016-07-15 Thread Brad Fitzpatrick
On Fri, Jul 15, 2016 at 9:19 AM, Nathan Youngman wrote: > Thanks Brad. > > I also use $GOPATH ($HOME/src) for code non-Go projects. > > I'd be in favour of a more automated solution to ignoring folders that > don't contain any *.go files (until such time as they star

[go-nuts] goimports has been updated

2016-07-14 Thread Brad Fitzpatrick
goimports has been updated. If you've been frustrated by its speed lately, run: $ go get -u golang.org/x/tools/cmd/goimports ... and things should be much nicer. Details at https://golang.org/cl/24941 If I broke something, file a bug: https://golang.org/issues/new The general speed trackin

Re: [go-nuts] GoLang Https Client doesn't work - php curl does. HELP

2016-07-06 Thread Brad Fitzpatrick
You only need to set tls.Config.InsecureSkipVerify. Don't set Certificates and ServerName. Of course, you should not use InsecureSkipVerify for using a third-party API at all. InsecureSkipVerify is really only meant for localhost testing. You want to use https://golang.org/pkg/crypto/x509/#NewCer