Re: [go-nuts] Go if else syntax .. suggested replacement

2019-04-24 Thread Chris Broadfoot
On Wed, Apr 24, 2019 at 4:22 AM Robert Engels wrote: > Though to the ops point, not sure why Go doesn’t have the ternary operator > - which is pretty ubiquitous. > https://golang.org/doc/faq#Does_Go_have_a_ternary_form > > On Apr 23, 2019, at 9:56 PM, Robert Engels wrote: > > Why? You have sa

Re: [go-nuts] Why does this program carry test flags once compiled?

2017-07-24 Thread Chris Broadfoot
One way around the flag problem is to accept an interface, instead of using testing.T. Watch Mitchell Hashimoto's talk from GopherCon from about 39m30s: https://youtu.be/8hQG7QlcLBk?t=2368 http://github.com/mitchellh/go-testing-interface On Mon, Jul 24, 2017 at 1:44 AM, roger peppe wrote: > >

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

2017-07-25 Thread Chris Broadfoot
Hello gophers, We have just released go1.9rc1, a release candidate of Go 1.9. It is cut from release-branch.go1.9 at the revision tagged go1.9rc1. Thank you to everyone who has helped to test Go 1.9 so far. We still need more people to test, especially on production workloads. Your help is invalu

[go-nuts] Go 1.9 Release Candidate 2 is released

2017-08-07 Thread Chris Broadfoot
Hello gophers, We have just released go1.9rc2, a release candidate of Go 1.9. It is cut from release-branch.go1.9 at the revision tagged go1.9rc2. Thank you to everyone who has helped to test Go 1.9 so far. We still need more people to test, especially on production workloads. Your help is invalu

[go-nuts] Go 1.9 is released

2017-08-24 Thread Chris Broadfoot
Hello gophers, We just released Go 1.9. You can read the announcement blog post here: https://blog.golang.org/go1.9 You can download binary and source distributions from our download page: https://golang.org/dl/ To compile from source using a Git checkout, update to the release with "git ch

[go-nuts] [security] Go 1.8.4 and Go 1.9.1 are released

2017-10-04 Thread Chris Broadfoot
Hi gophers, Two security-related issues were recently reported. To address this issue, we have just released Go 1.8.4 and Go 1.9.1. We recommend that all users update to one of these releases (if you're not sure which, choose Go 1.9.1). The issues addressed by these releases are: By nesting a g

[go-nuts] Subject: Go 1.9.2 and Go 1.8.5 are released

2017-10-25 Thread Chris Broadfoot
Hi gophers, We have just released Go versions 1.9.2 and 1.8.5, minor point releases. These releases include fixes to the compiler, linker, runtime, documentation, go command, and the crypto/x509, database/sql, log, and net/smtp packages. They include a fix to a bug introduced in Go 1.9.1 and Go 1

[go-nuts] Re: Appengine and main package

2017-11-01 Thread Chris Broadfoot
You can use a main package. package main import ( "net/http" "google.golang.org/appengine" ) func main() { http.HandleFunc(...) appengine.Main() } On Wednesday, November 1, 2017 at 12:04:14 AM UTC-7, Tamás Gulácsi wrote: > > Just move your main to a realmain pkg, and have a shim th

Re: [go-nuts] Pass API key to google cloud vision api

2017-12-20 Thread Chris Broadfoot
Stack Overflow is the best place to ask questions for GCP. The documentation does describe how to authenticate to this API. If I recall correctly, API keys are not supported. On Dec 21, 2017 2:46 AM, "Sathish VJ" wrote: I'm trying to make an api call to google vision api using an api key from

Re: [go-nuts] Go 2018 Survey "Error handling 5%"

2019-07-08 Thread Chris Broadfoot
See the errors proposal here: https://golang.org/design/29934-error-values Implementation in tip (available in 1.13 beta) https://tip.golang.org/pkg/errors/ Implementation in x/xerrors (backwards compatible): https://godoc.org/golang.org/x/xerrors xerrors - GoDoc On Mon, Jul 8, 2019, 9:54 AM Ro

Re: [go-nuts] Re: go mod dependency hell is real

2019-09-13 Thread Chris Broadfoot
Is this the issue you came across the other day, Jean? On Fri, Sep 13, 2019, 11:32 PM Antoine Mercadal wrote: > Hey, > > Then why is it called mvs? I don't understand what package system would > give me 1.3.49, if I require 1.2.0 and my dependency requires 1.1.0. > > I'll read a bit more about i

[go-nuts] Go 1.7.1 is released

2016-09-07 Thread Chris Broadfoot
Hi gophers, We have just released Go version 1.7.1, a minor point release. This release includes fixes to the compiler, runtime, documentation, and the compress/flate, hash/crc32, io, net, net/http, path/filepath, reflect, and syscall packages. https://golang.org/doc/devel/release.html#go1.7

[go-nuts] Go 1.7.3 is released

2016-10-19 Thread Chris Broadfoot
Hi gophers, We have just released Go version 1.7.3, a minor point release. This release includes fixes to the compiler, runtime, and the the crypto/cipher, crypto/tls, net/http, and strings packages. https://golang.org/doc/devel/release.html#go1.7.minor You can download binary and source dis

Re: [go-nuts] Re: Cloudstore default bucket name - data race?

2016-11-08 Thread Chris Broadfoot
You're right, it's racy. I'll update the sample. file.DefaultBucketName will indeed return the same result every time (unless the default bucket is updated in the App Engine admin console). On Tue, Nov 8, 2016 at 12:40 PM, Greg Jones wrote: > You're not wrong, that code isn't a safe use of a p

[go-nuts] Go 1.8 Beta 1 is released

2016-11-30 Thread Chris Broadfoot
Hello gophers, We have just released go1.8beta1, a beta version of Go 1.8. It is cut from the master branch at the revision tagged go1.8beta1. There are no known problems or regressions. Please try running production workloads and your unit tests with the new version. It is important that we fi

[go-nuts] [security] Go 1.7.4 and Go 1.6.4 are released

2016-12-01 Thread Chris Broadfoot
Two security-related issues were recently reported, and to address these issues we have just released Go 1.6.4 and Go 1.7.4. We recommend that all users update to one of these releases (if you're not sure which, choose Go 1.7.4). The issues addressed by these releases are: On Darwin, user's tr

[go-nuts] Re: [security] Go 1.7.4 and Go 1.6.4 are released

2016-12-01 Thread Chris Broadfoot
Quick update: go1.7.4 was tagged with the wrong commit. It has been updated from: go1.7.4 0ad8bf4122de7396f771ed12f86934ea3177d6cf to go1.7.4 6b36535cf382bce845dd2d272276e7ba350b0c6b If you built from the go1.7.4 tag at 0ad8b, the version will be incorrectly reported as "go1.7.3". The binaries

[go-nuts] Go 1.8 Beta 2 is released

2016-12-15 Thread Chris Broadfoot
Hello gophers, We have just released go1.8beta2, a beta version of Go 1.8. It is cut from the master branch at the revision tagged go1.8beta2. Thank you to everyone who has helped to test Go 1.8 so far. We still need more people to test! Your help is invaluable. It is important that we find bugs

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

2017-01-10 Thread Chris Broadfoot
Hello gophers, We have just released go1.8beta2, a release candidate of Go 1.8. It is cut from release-branch.go1.8 at the revision tagged go1.8rc1. Thank you to everyone who has helped to test Go 1.8 so far. We still need more people to test, especially on production workloads. Your help is inva

[go-nuts] Go 1.8 Release Candidate 2 is released

2017-01-19 Thread Chris Broadfoot
Hello gophers, We have just released go1.8rc2, a release candidate of Go 1.8. It is cut from release-branch.go1.8 at the revision tagged go1.8rc2. Thank you to everyone who has helped to test Go 1.8 so far. We still need more people to test, especially on production workloads. Your help is invalu

[go-nuts] Go 1.7 Beta 2 is released

2016-06-16 Thread Chris Broadfoot
Hello gophers, We have just released go1.7beta2, a beta version of Go 1.7. It is cut from the master branch at the revision tagged go1.7beta2. Please help us by testing your Go programs with the release, and report any problems using the issue tracker: https://golang.org/issue/new You can do

[go-nuts] Go 1.7 Release Candidate 1 is released

2016-07-07 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc1, a release candidate for Go 1.7. It is cut from release-branch.go1.7 at the revision tagged go1.7rc1. Please help us by testing your Go programs with the release, and report any problems using the issue tracker: https://golang.org/issue/new You ca

Re: [go-nuts] Re: OS X Installer: Why modify $PATH instead of adding symbolic links to /usr/local/bin?

2016-07-16 Thread Chris Broadfoot
If it isn't the right way of doing things, it might be something we can change (for 1.8, probably). What's an installer meant to do if there's an existing binary or symlink at that location? On Jul 16, 2016 9:41 AM, "Dmitri Shuralyov" wrote: Can someone please explain the thinking behind this de

[go-nuts] [security] Go 1.6.3 and 1.7rc2 are released

2016-07-18 Thread Chris Broadfoot
A security-related issue was recently reported in Go's net/http/cgi package and net/http package when used in a CGI environment. Go 1.6.3 and Go 1.7rc2 will contain a fix for this issue. Go versions 1.0-1.6.2 and 1.7rc1 are vulnerable to an input validation flaw in the CGI components resulting

Re: [go-nuts] Re: [security] Go 1.6.3 and 1.7rc2 are released

2016-07-18 Thread Chris Broadfoot
>> > >> Ian > >> > >> > On Monday, July 18, 2016 at 12:31:13 PM UTC-7, Ian Lance Taylor wrote: > >> >> > >> >> On Mon, Jul 18, 2016 at 12:11 PM, wrote: > >> >> > Why are the other changes to be released but not

[go-nuts] Go 1.7 Release Candidate 3 is released

2016-07-21 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc3, a release candidate for Go 1.7. It is cut from release-branch.go1.7 at the revision tagged go1.7rc3. Please help us by testing your Go programs with the release, and report any problems using the issue tracker: https://golang.org/issue/new You ca

[go-nuts] Re: Go 1.7 Release Candidate 3 is released

2016-07-21 Thread Chris Broadfoot
A couple people requested a changelog between release candidates. I'll try to remember to include that for the 1.8 release candidates (we don't plan to do a 1.7rc4). GitHub has a nice view for commits between refs. Here's what was in 1.7rc2 (very small): https://github.com/golang/go/compare/go1

Re: [go-nuts] Go language - ending?

2016-07-27 Thread Chris Broadfoot
You might want to check out the gopherjs project: https://github.com/gopherjs/gopherjs There are no plans for the Go project to have an official target for WebAssembly. On Wed, Jul 27, 2016 at 8:02 AM, Alexey Solovey wrote: > Hello. Will support of WebAssembly (compilation to JS) in Go language

Re: [go-nuts] post method in golang?

2016-07-28 Thread Chris Broadfoot
Try this awesome utility: https://mholt.github.io/curl-to-go/ On Jul 28, 2016 8:47 PM, "Adrian Lanzafame" wrote: > Hi Victor, > > Have you had a look at the net/http package? > http://golang.org/pkg/net/http > > On Fri, 29 Jul 2016 01:01 Victor L wrote: > >> I am using curl for REST call from j

[go-nuts] Go 1.7 Release Candidate 4 is released

2016-08-01 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc4, a release candidate for Go 1.7. It is cut from release-branch.go1.7 at the revision tagged go1.7rc4. Please help us by testing your Go programs with the release, and report any problems using the issue tracker: https://golang.org/issue/new You ca

[go-nuts] Go 1.7 Release Candidate 5 is released

2016-08-02 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc5, a release candidate for Go 1.7. It is cut from release-branch.go1.7 at the revision tagged go1.7rc5. rc5 includes three fixes: two to the `go doc` command, and one fix for time for macOS Sierra Beta 4. Please help us by testing your Go programs with

[go-nuts] Go 1.7 Release Candidate 6 is released

2016-08-08 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc6, a release candidate for Go 1.7. Some say that it's the best one yet. It is cut from release-branch.go1.7 at the revision tagged go1.7rc6. Please help us by testing your Go programs with the release, and report any problems using the issue tracker:

[go-nuts] Go 1.7 is released

2016-08-15 Thread Chris Broadfoot
Hello gophers, We just released Go 1.7. You can read the announcement blog post here: https://blog.golang.org/go1.7 You can download binary and source distributions from our download page: https://golang.org/dl/ To compile from source using a Git checkout, update to the release with "git c

Re: [go-nuts] Go 1.7 is released

2016-08-15 Thread Chris Broadfoot
Thanks for flagging it. I'm re-building the zip file and it should be available at golang.org/dl soon. On Mon, Aug 15, 2016 at 5:03 PM, chai2010 wrote: > go1.7.windows-amd64.zip missing. > > 2016-08-16 7:28 GMT+08:00 Chris Broadfoot : > >> Hello gophers, >> >>

Re: [go-nuts] Go 1.7 is released

2016-08-15 Thread Chris Broadfoot
Thanks, it has been added here: https://golang.org/project/ On Mon, Aug 15, 2016 at 5:25 PM, chai2010 wrote: > and http://127.0.0.1:6060/project/ #release history page have no Go1.7 > release notes. > > 2016-08-16 8:20 GMT+08:00 Chris Broadfoot : > >> Thanks for flagging it

[go-nuts] Go 1.7.5 and Go 1.8rc3 are released

2017-01-26 Thread Chris Broadfoot
Hello gophers, We have just released go1.7.5, which includes fixes to the compiler, runtime, and the crypto/x509 and time packages. https://golang.org/doc/devel/release.html#go1.7.minor You can download binary and source distributions from the Go web site: https://golang.org/dl/ We also released

[go-nuts] Go 1.8 is released

2017-02-16 Thread Chris Broadfoot
Hello gophers, We just released Go 1.8. You can read the announcement blog post here: https://blog.golang.org/go1.8 You can download binary and source distributions from our download page: https://golang.org/dl/ To compile from source using a Git checkout, update to the release with "git c

[go-nuts] Go 1.8.1 is released

2017-04-07 Thread Chris Broadfoot
Hi gophers, We have just released Go version 1.8.1, a minor point release. This release includes fixes to the compiler, runtime, documentation, go command, and the crypto/tls, encoding/xml, image/png, net, net/http, reflect, text/template, and time packages. https://golang.org/doc/devel/re

[go-nuts] [security] Go 1.7.6 and Go 1.8.2 are released

2017-05-23 Thread Chris Broadfoot
A security-related issue was recently reported in Go's crypto/elliptic package. To address this issue, we have just released Go 1.7.6 and Go 1.8.2. The Go team would like to thank Vlad Krasnov and Filippo Valsorda at Cloudflare for reporting the issue and providing a fix. The issue affects Go's

[go-nuts] Go 1.8.3 is released

2017-05-24 Thread Chris Broadfoot
Hi gophers, We have just released Go version 1.8.3, a minor point release. This release includes fixes to the compiler, runtime, documentation, and the database/sql package. https://golang.org/doc/devel/release.html#go1.8.minor It also includes the security fix to the crypto/elliptic package

[go-nuts] Go 1.9 Beta 1 is released

2017-06-14 Thread Chris Broadfoot
Hello gophers, We have just released go1.9beta1, a beta version of Go 1.9. It is cut from the master branch at the revision tagged go1.9beta1. There are no known problems or regressions. Please try running production load tests and your unit tests with the new version. Report any problems using

[go-nuts] Go 1.9 Beta 2 is released

2017-06-26 Thread Chris Broadfoot
Hello gophers, We have just released go1.9beta2, a beta version of Go 1.9. It is cut from the master branch at the revision tagged go1.9beta2. There are no known problems or regressions. Please try running production load tests and your unit tests with the new version. Your help testing these pre

Re: [go-nuts] Help with Oauth2 "grant_type=client_credentials"

2020-02-11 Thread Chris Broadfoot
Try this package: https://pkg.go.dev/golang.org/x/oauth2/clientcredentials?tab=doc On Tue, Feb 11, 2020, 4:43 PM andrey mirtchovski wrote: > i would strongly advise against implementing advice received online > for something as important as auth. my suggestion is to work with curl > from the com

[go-nuts] Re: [golang-dev] Subject: Go 1.9.2 and Go 1.8.5 are released

2017-10-26 Thread 'Chris Broadfoot' via golang-nuts
with the snap > already installed should get them soon, or snap install --classic --channel > 1.9/stable go on an ubuntu or ubuntu-like system if you want to try them > out :) > > Cheers, > mwh > > On 26 October 2017 at 12:51, Chris Broadfoot wrote: > >> Hi gophers