Re: [go-nuts] Go Create

2021-01-12 Thread Jim Ancona
I have a third use case for replace: 3. Simultaneously developing a library and client for that library. For example, if I have a library to access a network service or piece of hardware and want to extend its API, I find that working on the client along with the library helps me iterate to a good

Re: [go-nuts] Does your Windows app rely on os.Rename() or .Remove() ?

2019-07-03 Thread Jim Ancona
On Wed, Jul 3, 2019 at 1:09 PM Liam wrote: > [Sorry to keep re-posting this; I'm keeping it visible for infrequent > readers] > I'm a frequent reader and I've now seen it four times. IMHO, that's enough. Jim > > Microsoft recommends changing syscall.Open() for GOOS=windows to fix this. > Pls

Re: [go-nuts] Go Module Mirror and Checksum Database in Beta!

2019-05-31 Thread Jim Ancona
On Thu, May 30, 2019 at 5:14 PM Katie Hockman wrote: > Our privacy policy explains how we collect and use your information. The > privacy policy for all of these services is proxy.golang.org/privacy. > I tried visiting that page, which redirected to https://policies.google.com/privacy Unfortunat

Re: [go-nuts] Pointer based API and constants literals, how to best handle it?

2019-04-18 Thread Jim Ancona
ready implemented a missing Cognito Provider > using the web API, and it seemed friendlier than this. It would be one > less dependency too, since I'm deploying to AWS Lambda and I'm already at > 14MB for my first Go based Lambda. > > Peter > > > On Wednes

Re: [go-nuts] Pointer based API and constants literals, how to best handle it?

2019-04-17 Thread Jim Ancona
Having used the AWS SDK, I feel your pain. They do have built-in helper methods, e.g. https://docs.aws.amazon.com/sdk-for-go/api/aws/#String, so at least you don't have to define your own. Jim On Wed, Apr 17, 2019 at 2:22 PM whitehexagon via golang-nuts < golang-nuts@googlegroups.com> wrote: > I

Re: [go-nuts] Is Go a single pass compiler?

2019-02-28 Thread Jim Ancona
The first computer I ever programmed[1] had a Fortran compiler that stored its intermediate representation on paper tape. As you might imagine, the number of passes affected compilation speed a lot. I don't do compilers, but I suspect that other bottlenecks matter much more today. Jim [1] - https

Re: [go-nuts] Issue with creating file on aws lambda

2018-10-16 Thread Jim Ancona
I'm pretty sure that the only writeable file system on Lambda in under /tmp. You're not checking the error return from os.MkdirAll, but that call is probably failing before you get to os.Create. Also keep in mind that each Lambda instance is limited to 512 MB of /tmp space: https://docs.aws.amazon.

Re: [go-nuts] Local cache of dependencies

2018-08-23 Thread Jim Ancona
I believe Athens (https://github.com/gomods/athens) is meant to address this use case in the Go modules world. Jim On Wed, Aug 22, 2018 at 7:51 PM Conor Hackett wrote: > Thanks Sam, > > I'll have a look out of curiosity but I am very reluctant to > introduce/recommend Git submodules to any of m

Re: [go-nuts] Re: Choosing a framework

2017-09-14 Thread Jim Ancona
On Thu, Sep 14, 2017 at 1:28 AM, Vikram Rawat wrote: > > And there is another project called VECTY. But I mailed them and they told > me it's not documented yet. and it could have bugs. > Vecty (https://github.com/gopherjs/vecty) uses Gopherjs and runs in the browser, so it used for different thi

Re: [go-nuts] Invalid JSON document from 'go list -json std'

2016-08-23 Thread Jim Ancona
This is a pretty common way of streaming JSON objects. See: https://en.wikipedia.org/wiki/JSON_Streaming But I agree that it's not part of the JSON standard, nor does it seem to be standardized anywhere else. On Mon, Aug 22, 2016 at 9:43 PM, Matt Harden wrote: > The output is not a valid (singl