[go-nuts] Code for Phi = arctan(y/x) + psi, psi = 0 or pi

2019-09-13 Thread SATEESH KANDUKURI
Can anyone help me to write the code for Phi = arctan(y/x) + psi, psi = 0 or pi and (x, y) are the spatial coordinates in the film plane with the origin at the center of a circular disk of radius 50nm. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Re: CGO: How to link static library across dependent packages?

2019-09-13 Thread Sriram
No, unfortunately I worked around the problem by redesigning the modules On Thu, Sep 12, 2019, 8:52 PM wrote: > Did you find the solution to this problem? I think I might have the same > problem. > > Also, if there is useful info, and it's not too much trouble, can you link > to the issue you

Re: [go-nuts] select on slice of channels

2019-09-13 Thread Rob Pike
The feature was in Newsqueak but we deliberately omitted it from Go because the cost of the operation can be very high and we weren't comfortable provided such concise notation for such an expensive operation. -rob On Fri, Sep 13, 2019 at 4:02 PM Ian Lance Taylor wrote: > On Thu, Sep 12, 2019

Re: [go-nuts] What happens if the hash retrieved from sumdb and the one in go.sum file of the main module are different?

2019-09-13 Thread T L
On Thursday, September 12, 2019 at 11:58:30 AM UTC-4, T L wrote: > > > > On Wednesday, September 11, 2019 at 5:33:02 PM UTC-4, Ian Lance Taylor > wrote: >> >> The go tool reports a checksum mismatch error. >> >> Ian >> > > "go help module-auth" says > > If a downloaded module is not yet

Re: [go-nuts] Modules for packages without dependencies

2019-09-13 Thread Ian Lance Taylor
On Fri, Sep 13, 2019 at 7:36 AM Robert Johnstone wrote: > > I'm looking at what I should do to keep my packages current with respect to > modules. The tutorials have covered top-level packages, but I haven't seen > any discussions around low-level packages. In particular, I have some >

Re: [go-nuts] select on slice of channels

2019-09-13 Thread Ian Lance Taylor
On Fri, Sep 13, 2019 at 9:00 AM Andrey Tcherepanov wrote: > > it is nice to know that there is at least "an escape hatch" through reflect > package if needed. > > Is there an upper bound for how many items could be in that slice (select > statement)? Not really. At some point if you keep

Re: [go-nuts] Type inference inside struct literals? Pretty Please?

2019-09-13 Thread Nate Finch
Thanks! Yes, let's do that :) On Thursday, September 12, 2019 at 6:28:02 PM UTC-4, Ian Lance Taylor wrote: > > On Thu, Sep 12, 2019 at 2:02 PM Nate Finch > wrote: > > > > I wish go's type inference worked inside struct literals. Filling out > config structs would be so much easier if this

[go-nuts] Modules for packages without dependencies

2019-09-13 Thread Robert Johnstone
Hello, I'm looking at what I should do to keep my packages current with respect to modules. The tutorials have covered top-level packages, but I haven't seen any discussions around low-level packages. In particular, I have some low-level packages that rely only on the standard library. It's

Re: [go-nuts] select on slice of channels

2019-09-13 Thread Andrey Tcherepanov
Thanks Ian, it is nice to know that there is at least "an escape hatch" through reflect package if needed. Is there an upper bound for how many items could be in that slice (select statement)? Andrey On Friday, September 13, 2019 at 12:02:18 AM UTC-6, Ian Lance Taylor wrote: > > On Thu, Sep

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

2019-09-13 Thread Darko Luketic
Hey Sam and Pudds, thanks for feedback and help. v1.1.7 helped. I must say go.mod is growing on me, but it's still hindering productivity or let's say a step back. If you use Goland, which probably most mousepushers like me use, since everything is under ~/go/pkg/ even with modules enabled in

[go-nuts] [ANN] YottaDB r1.28 released; Go wrapper now production grade

2019-09-13 Thread K.S. Bhaskar
For users of YottaDB using the Go API, r1.28 is a major release because it is required for production grade access to YottaDB from Go. For others, it is a minor release with a small set of enhancements and fixes as detailed in the release notes (https://gitlab.com/YottaDB/DB/YDB/-/tags/r1.28).

[go-nuts] If v2.x.y+incompatible exists, then getting the modules based v3 version will always fail?

2019-09-13 Thread T L
For example, $ $ go get github.com/go101/mod_versions/v3@latest go: finding github.com/go101/mod_versions/v3 v3.1.0 go get github.com/go101/mod_versions/v3@latest: module github.com/go101/mod_versions@latest (v2.0.0+incompatible) found, but does not contain package

Re: [go-nuts] Code for Phi = arctan(y/x) + psi, psi = 0 or pi

2019-09-13 Thread Michael Jones
https://golang.org/pkg/math/#Atan2 On Fri, Sep 13, 2019 at 5:40 AM SATEESH KANDUKURI < p20170...@hyderabad.bits-pilani.ac.in> wrote: > Can anyone help me to write the code for Phi = arctan(y/x) + psi, psi = 0 > or pi and (x, y) are the spatial coordinates in the film plane with the > origin at

Re: [go-nuts] Re: If v2.x.y+incompatible exists, then getting the modules based v3 version will always fail?

2019-09-13 Thread andrey mirtchovski
are you following the steps outlined below? https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher in particular, for a v2 (or v3) it states that the go.mod file must be updated: > Update the go.mod file to include a /v3 at the end of the module path in the > module directive

[go-nuts] Re: If v2.x.y+incompatible exists, then getting the modules based v3 version will always fail?

2019-09-13 Thread T L
I really don't get how modules are got. I create another repo with all versions are module based, but it still fails on getting v2. $ go get github.com/go101/mod_versions_b/v2@latest go: finding github.com/go101/mod_versions_b/v2 v2.1.1 go get github.com/go101/mod_versions_b/v2@latest: module

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

2019-09-13 Thread antoine
Hi, but require 1.2.0 will not work if another dependency requires the same package at version 1.1.0 thanks to mvs. So either I'm wrong and I did not understand mvs, in that case I would like to get enlighten, or I got that right and that comforts me in my deep hate of mvs. On Tuesday,

Re: [go-nuts] select on slice of channels

2019-09-13 Thread Ian Lance Taylor
On Thu, Sep 12, 2019 at 9:40 PM Andrey Tcherepanov wrote: > > well, subj - why can't I "just" do a select on a slice of channels? Yes, I > can run a bunch goroutines with of reads on an each channel, funnel it all > into 1 notification channel, pick up on the other side... boring stuff, >