Re: [go-nuts] go test -c in go 1.13 does not include -test.timeout flag in binary?

2020-01-31 Thread Craig Rodrigues
On Thursday, January 30, 2020 at 11:03:04 PM UTC-8, Craig Rodrigues wrote: > > > > On Thursday, January 30, 2020 at 10:06:36 PM UTC-8, Ian Lance Taylor wrote: >> >> On Thu, Jan 30, 2020 at 9:43 PM Craig Rodrigues >> wrote: >> > I see here that this might be related: >> https://golang.org/doc/

[go-nuts] map memory usage

2020-01-31 Thread pierre . curto
Hello, Is there a better way to estimate the memory usage of a map, other than the following: https://play.golang.org/p/MLSd84CJB3R Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving email

[go-nuts] go mod vendor command leads to LF will be replaced by CRLF warning

2020-01-31 Thread sitbackandwait
Hi, I am migrating a project to go modules. I have already moved everything to the vendor folder and checked in the files. After running go mod vendor on the clean working git tree, one of the files from a dependency, runbench.cmd, appears to be changed according to git. I am getting the followi

Re: [go-nuts] map memory usage

2020-01-31 Thread Ian Lance Taylor
On Fri, Jan 31, 2020 at 2:48 AM wrote: > > Is there a better way to estimate the memory usage of a map, other than the > following: > https://play.golang.org/p/MLSd84CJB3R The memory usage of a map is going to depend on the history of how the map is used. That said, a map is an array of buckets

Re: [go-nuts] go test -c in go 1.13 does not include -test.timeout flag in binary?

2020-01-31 Thread Ian Lance Taylor
On Fri, Jan 31, 2020 at 12:19 AM Craig Rodrigues wrote: > > On Thursday, January 30, 2020 at 11:03:04 PM UTC-8, Craig Rodrigues wrote: >> >> >> >> On Thursday, January 30, 2020 at 10:06:36 PM UTC-8, Ian Lance Taylor wrote: >>> >>> On Thu, Jan 30, 2020 at 9:43 PM Craig Rodrigues wrote: >>> > I see

[go-nuts] Re: annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-31 Thread Andreas Otto
I do nothing on *C* with this pointer… I just give the Pointer as Argument to an *GO* callback. Am Donnerstag, 30. Januar 2020 14:25:48 UTC+1 schrieb Tamás Gulácsi: > > > > How do you handle the interface types on the C side? If you call back to > Go exported functions, > then you shouldn't tra

Re: [go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-31 Thread Andreas Otto
thanks to the Info, don't have profiled this overhead… It was just an assumtion. Am Donnerstag, 30. Januar 2020 18:12:50 UTC+1 schrieb Jake Montgomery: > > > > On Thursday, January 30, 2020 at 2:31:59 AM UTC-5, Andreas Otto wrote: >> >> >> >> Am Mittwoch, 29. Januar 2020 23:19:34 UTC+1 schrieb Br

[go-nuts] [ANN] SFTPGo Cloud Storage support

2020-01-31 Thread Nicola Murino
Hi all, SFTPGo gained support for serving some Cloud Storage backends over SFTP/SCP, currently we support: - S3 Compatible Object Storage - Google Cloud Storage Each SFTP user can be mapped to a whole bucket or to a bucket virtual folder. Mapping a virtual folder is very similar to a chroot di

Re: [go-nuts] go test -c in go 1.13 does not include -test.timeout flag in binary?

2020-01-31 Thread Craig Rodrigues
On Friday, January 31, 2020 at 7:23:32 AM UTC-8, Ian Lance Taylor wrote: > > > Calling flag.Parse in an init function never worked reliably, unless > you took special care. Flags are themselves often defined in init > functions, so calling flag.Parse in an init function will see the > flags t

Re: [go-nuts] Re: go1.12.16 not tagged on release-branch.go1.12?

2020-01-31 Thread peterGo
Sue, I saw a person reporting a bug, mistake, or inconsistency, which I confirmed. Filing a ticket on the Go issue tracker asks for a recipe for reproducing the error. The Go Project https://golang.org/project/ Reporting issues https://github.com/golang/go/issues If you spot bugs, mistakes,

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-31 Thread Brian Candler
I use "diff -ubB foo bar" to compare files where I don't care about whitespace differences (-b within line, -B for blank lines). I believe "git diff" supports -b too. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] go test -c in go 1.13 does not include -test.timeout flag in binary?

2020-01-31 Thread Ian Lance Taylor
On Fri, Jan 31, 2020 at 10:33 AM Craig Rodrigues wrote: > > > On Friday, January 31, 2020 at 7:23:32 AM UTC-8, Ian Lance Taylor wrote: >> >> >> Calling flag.Parse in an init function never worked reliably, unless >> you took special care. Flags are themselves often defined in init >> functions, s

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-31 Thread David Riley
On Jan 30, 2020, at 8:46 AM, Manlio Perillo wrote: > > Yes. > > In fact I wrote that alignment should be done by the editor, not gofmt. In this scenario, the editor needs to understand Go formatting and apply special formatting to tabs within struct fields? I strongly discourage this. It will

[go-nuts] Re: Go Tool to convert svg to png/jpg

2020-01-31 Thread maithri . friend
I'm looking for one too but can't find anything online either.. On Monday, March 9, 2015 at 11:35:51 PM UTC-7, will wrote: > > Hi Gophers, > > Is there a Golang based tool (or library) tool to convert svg to png or > jpg? > > regards, > > Will > -- You received this message because you are subs

Re: [go-nuts] Go Tool to convert svg to png/jpg

2020-01-31 Thread robert engels
There is no cross-platform graphics library included in Go. Most likely you’ll need a C binding to Qt or similar to perform the rasterization. You might be able to put one together using something like https://github.com/hajimehoshi/ebiten > On Jan 31, 2020, at 7:31 PM, maithri.fri...@gmail.c

Re: [go-nuts] Go Tool to convert svg to png/jpg

2020-01-31 Thread Michael Jones
Just to be clear: PNG is a description of pixel values comprising an image (RGBa, RGBa, RGBa, ...), SVG is a program for creating an image (set color to blue, draw a circle, change to red, draw a line, ...). Going from SVG (scalable vector graphics) to pixels is to render an image by executing the

Re: [go-nuts] Go Tool to convert svg to png/jpg

2020-01-31 Thread Randall O'Reilly
Here’s some partial SVG renderers in Go: * https://github.com/srwiley/oksvg * https://github.com/goki/gi (uses srwiley’s rasterx rasteriser, has separate SVG parsing / painting impl). Cheers, - Randy > On Jan 31, 2020, at 6:54 PM, Michael Jones wrote: > > Just to be clear: PNG is a descriptio

Re: [go-nuts] Go Tool to convert svg to png/jpg

2020-01-31 Thread robert engels
That rasterx is pretty sweet. Should be pretty easy to create an SVG to PNG module using that. > On Feb 1, 2020, at 12:20 AM, Randall O'Reilly wrote: > > Here’s some partial SVG renderers in Go: > > * https://github.com/srwiley/oksvg > * https://github.com/goki/gi (uses srwiley’s rasterx raste