Re: [go-nuts] go vet tool

2019-03-04 Thread Rob Pike
Ah, yes it does work, if not documented in 'go help vet'. Thanks. -rob On Tue, Mar 5, 2019 at 10:20 AM Ian Lance Taylor wrote: > On Mon, Mar 4, 2019 at 2:00 PM Rob Pike wrote: > > > > The help for go vet does not mention that one can pass individual files, > only packages. > > I'm hardly

Re: [go-nuts] how to deal with absent go.mod file in tool package when GO111MODULE=on

2019-03-04 Thread Dan Kortschak
Thanks, though I don't think that will help us for our specific problem. gobin does not compile for https://github.com/golang/go/commit/65c2069a9f30cb6fa2c512d17dc0ad65 4d621da9 On Mon, 2019-03-04 at 14:13 +, roger peppe wrote: > It's not a standard tool, but you could use

[go-nuts] Project install for go mod

2019-03-04 Thread Liam Breck
What are the recommended from-scratch download/install directions for a project using go.mod (having 1+ main packages)? I don't see them in the wiki, sorry. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: Can Go 2.x (or later) adopt some concurrency safety paradigms from Rust?

2019-03-04 Thread robert engels
I agree wholeheartedly. Use the race detector, and well designed code - much easier to understand and maintain than the equivalent Rust IMO. > On Mar 4, 2019, at 1:49 PM, Manlio Perillo wrote: > > On Monday, March 4, 2019 at 8:06:16 PM UTC+1, Jeff Kayser wrote: > Paradigms of Rust for the Go

Re: [go-nuts] go vet tool

2019-03-04 Thread Ian Lance Taylor
On Mon, Mar 4, 2019 at 2:00 PM Rob Pike wrote: > > The help for go vet does not mention that one can pass individual files, only > packages. I'm hardly going to claim that the docs are clear, but most of the go commands accept a list of files, which is documented at

Re: [go-nuts] go vet tool

2019-03-04 Thread Rob Pike
The help for go vet does not mention that one can pass individual files, only packages. -rob On Tue, Mar 5, 2019 at 6:20 AM Ian Lance Taylor wrote: > On Sun, Mar 3, 2019 at 11:02 PM wrote: > > > > Is it possible to use go vet as go tool vet . With go > vet it is giving no go source files,

Re: [go-nuts] Allow go mod download to store in subdirectory of current working directory

2019-03-04 Thread thepudds1460
Jorrit, The simplest solution might be 'go mod vendor' to populate a 'vendor' directory, and then set '-mod=vendor' or 'GOFLAGS=-mod=vendor' when building. If that is not workable for some reason, here is an alternative that is more similar to your request for a 'go mod download -dir

[go-nuts] Re: Go 1.12 installer on Windows 7 (x64) problem

2019-03-04 Thread Tad Vizbaras
Yes, it was Windows 7 SP1 installation issue. Somehow only part of SP1 got applied during install. Once fixed Go installed without any issues. Thanks a lot. On Monday, March 4, 2019 at 1:04:16 PM UTC-5, Jake Montgomery wrote: > > I have seen posts, unrelated to Go, about installers not

Re: [go-nuts] Naming convention of low-level functions from runtime and everything

2019-03-04 Thread Ian Lance Taylor
On Mon, Mar 4, 2019 at 8:00 AM Michel Levieux wrote: > > I just have a little question here: sometimes reading the low-level code of > Go (like runtime, compiler code etc) I find the names of structs and fields > quite hard to understand, like acronyms or abreviations or even initials that >

Re: [go-nuts] go vet tool

2019-03-04 Thread Ian Lance Taylor
On Sun, Mar 3, 2019 at 11:02 PM wrote: > > Is it possible to use go vet as go tool vet . With go vet > it is giving no go source files, to use vet tool every time i have to go > different paths. Is there any way to use go vet as go tool vet. With go tool > vet I can be able to see log of all

[go-nuts] Re: Allow go mod download to store in subdirectory of current working directory

2019-03-04 Thread Manlio Perillo
On Monday, March 4, 2019 at 5:49:06 PM UTC+1, Jorrit Salverda wrote: > > I'd like to be able to use go mod download to download packages to > another directory than GOPATH/pkg/mod and automatically have all go > commands be aware of this new location. > > > This is specifically for CI/CD to

[go-nuts] Can Go 2.x (or later) adopt some concurrency safety paradigms from Rust?

2019-03-04 Thread jeffkayser3
Paradigms of Rust for the Go developer https://medium.com/@deckarep/paradigms-of-rust-for-the-go-developer-210f67cd6a29 I found this article extremely interesting. Concurrency safety appears to be an area where Rust beats Go. I don't have any intentions to move to Rust. But it would sure be

Re: [go-nuts] go vet tool

2019-03-04 Thread Rob Pike
I do wish it were still possible to do "go vet file.go" or "go vet directory" although I do understand why it is not (type checking). Over time, everything gets better but also worse and always bigger and more complex. -rob On Mon, Mar 4, 2019 at 6:02 PM wrote: > Is it possible to use go vet

[go-nuts] Re: Issues with VPN and two different addresses for imports

2019-03-04 Thread Tamás Gulácsi
2019. március 4., hétfő 17:49:29 UTC+1 időpontban Austin LaBerta a következőt írta: > > Hello, > > My particular group in the company I work for uses a lot of copy pasted > code (I'm unaware of "why" besides that a lot of these programs are > inherited from an older team, no clue why they did

[go-nuts] Re: Go 1.12 installer on Windows 7 (x64) problem

2019-03-04 Thread jake6502
I have seen posts, unrelated to Go, about installers not recognizing Windows 7 SP1 as being installed. You did a screenshot of the update history, but you should also check that it is listed under Computer->Properties->Windows edition. See here

[go-nuts] ocsql: database/sql wrapper to provide observability with distributed traces and metrics

2019-03-04 Thread emmanuel
Hello everyone, I am delighted to announce observability tools to help provide distributed tracing and metrics for your SQL drivers in Go. *"contrib.go.opencensus/integrations/ocsql"* is an instrumented wrapper for *"database/sql"*, using OpenCensus https://opencensus.io/ It can be

Re: [go-nuts] Allow go mod download to store in subdirectory of current working directory

2019-03-04 Thread Marcin Romaszewicz
Can you accomplish what you want with module vendoring? Before I set up my own Athens proxy, I was using that to avoid DDOSing github in my build automation, and it seemed to work fine. Your first pipeline step could vendor in all the modules, and subsequent pipeline steps would use those. --

Re: [go-nuts] Different Languages of a Program Project

2019-03-04 Thread Chris Burkert
John, the Web Browser communicates with the Web Server using the http protocol. So http is the definition how they interact with each other. It’s not a language but a protocol. The Web Browser can display (or render) stuff which has been transferred via http. This could be some HTML with the help

[go-nuts] [ANN] A 2D game library Ebiten 1.9.0 - No Cgo on Windows, Metal on macOS, etc.

2019-03-04 Thread Hajime Hoshi
Hi all, I'm happy to announce the new version of *Ebiten 1.9.0*! Ebiten is a dead simple 2D game library, with which you can develop 2D games working on multiple environments including desktops, browsers and mobiles. GitHub project: https://github.com/hajimehoshi/ebiten 1.9.0 Detail:

Re: [go-nuts] how to deal with absent go.mod file in tool package when GO111MODULE=on

2019-03-04 Thread roger peppe
It's not a standard tool, but you could use github.com/myitcv/gobin. On Sun, 3 Mar 2019 at 20:56, Dan Kortschak wrote: > As part of our testing we need to install a tool that currently does > not have go.mod/go.sum files. Since we test on Go versions both with > and without module support and