Thanks.

When you're not in a module it returns /dev/null on linux. I don't
suppose this is platform independent?

On Mon, 2019-12-09 at 06:52 +0000, Paul Jolly wrote:
> go env GOMOD - gives the path to the go.mod in use in module mode,
> and is
> empty otherwise (i.e. GOPATH mode)
> 
> On Mon, 9 Dec 2019, 00:25 Dan Kortschak, <d...@kortschak.io> wrote:
> 
> > Is there a way to query whether an invocation of the go command
> > would
> > be running in module mode?
> > 
> > thanks
> > Dan
> > 
> > --
> > You received this message because you are subscribed to the Google
> > Groups
> > "golang-nuts" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an
> > email to golang-nuts+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> > 
https://groups.google.com/d/msgid/golang-nuts/c0c406db898a66fb1fe2638242922512315ff190.camel%40kortschak.io
> > .
> > 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2cb0889e0a0de4b44c79c0e3ccd5502e01f16c4e.camel%40kortschak.io.

Reply via email to