[go-nuts] Re: AWS S3 Image Upload with Golang

2018-08-14 Thread helloPiers
It's not clear what the type of "out" is, other than it has Stat() and Read([]byte) methods, but, assuming it's an io.Reader at least, if you examine the return values from Read, like: n, err := out.Read(buffer) you may get a clue to what's going wrong, for example n might not be the full size

[go-nuts] Re: Domain-driven design and go

2017-08-21 Thread helloPiers
This topic reminded me of this other thing I remember seeing: https://github.com/marcusolsson/goddd - there are some further links to blog posts and stuff on the README on that project, and there's a related talk on YouTube from one of the Go conferences. On Friday, August 18, 2017 at 11:29:0

Re: [go-nuts] How to run (individual) tests and benchs of the stdlib?

2017-10-21 Thread helloPiers
You've missed the regexp argument to -bench; try just a . to match all benchmarks. (In fact go test will be interpreting crypto/tls/... as the regular expression, and with no further parameter is trying to test what's in the current directory.) -bench regexp Run only those benchmarks match

[go-nuts] Re: PKCs8 generated using go has errors when doing a openssl check

2019-10-04 Thread helloPiers
For PKCS8 (rather than PKCS1), use PEM type "PRIVATE KEY" (rather than "RSA PRIVATE KEY"). You may be constructing the ASN1 by hand deliberately, but just in case you didn't see it, there's also a standard library function x509.MarshalPKCS8PrivateKey() https://godoc.org/crypto/x509#MarshalPKCS

[go-nuts] Re: [golang-dev] Go 1.13.5 and Go 1.12.14 are released

2019-12-10 Thread helloPiers
The pull request is not going too smoothly: https://github.com/Homebrew/homebrew-core/pull/47510 (I just looked at the repo - I'm not involved with homebrew at all, except as a user.) On Monday, December 9, 2019 at 9:36:01 PM UTC, Brian Hatfield wrote: > > Hi there, > > This appears to still n