Is there a more suitable site for me to post my question without irritating people?
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3e9c5dad-2fda-9574-d8f9-8cedfb7986e5%40fastmail.com.
I guess I was not clear enough. My apologies. dsrt is my own code. I remember an earlier posting on this list recommended 'go install' instead of 'go build'
~/go/src/dsrt/dsrt.go, util_linux.go, util_windows.go
And I have written other small programs in go that I use for myself. I put it in https://play.golang.org/p/U7FgzpqCh-B
It compiles and runs fine on go 1.12.x under linux, and fine on go 1.13 under windows 10. I have not yet installed go1.13.1 on my windows 10 box.
I remember a promise that anything that compiles under go 1.0.0
will not be broken. Not being able to compile using go 1.13 that
works fine using go 1.12.x, broke my code.
I'm not a professional programmer. I don't know what else to include here to demonstrate my problem.
Thanks for your response.
--rob solomon
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/5hh--qle2KI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2Bv29LtsWqufQHw%2BmJtAe60KnCHPag9SPVAtjkP2XzkkuHcwyg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3e9c5dad-2fda-9574-d8f9-8cedfb7986e5%40fastmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/5hh--qle2KI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golan...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/84d7a41b-5fff-428c-9e10-244ae2cc6a0b%40googlegroups.com.
func GetUserGroupStr(f os.FileInfo) (string, string) {
return "foo", "bar"
}
Your experience matches mine when compiled on windows 10.But linuxmint experience is as I described. Another responder asked me if it works when I set GO111MODULE=no.It does work when I do that. I find it interesting that the linux behavior seems to be different
To unsubscribe from this group and all its topics, send an email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/84d7a41b-5fff-428c-9e10-244ae2cc6a0b%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9e61ee25-b953-4947-8134-b3f054d8bb69%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAJTu_ta-EhDxsoWnMNSvBy-_tKjL_0x-Eb2Jcyf3LKEBQQTkXw%40mail.gmail.com.
I hope this helps. I removed the GO111MODULE=off that I added
the other day to get compilation to work.
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/rob/.cache/go-build"
GOENV="/home/rob/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/rob/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0
-fdebug-prefix-map=/tmp/go-build194651225=/tmp/go-build
-gno-record-gcc-switches"
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2Bv29LtygfRKt9qQDPM9T_iMj8sMK%2B2q0Mxpo6yV9mVCOd%3DMag%40mail.gmail.com.
I figured out the source of these reported difference in behaviors.
My win10 system does not have a go.mod file, but my LinuxMint system does. When I deleted that (and unset GO111MODULE) I was able to compile on LinuxMint.
So the differences depend on whether there is already a go.mod file in my ~/go/src directory.
Thanks for all the help guys.
--rob