Re: [go-nuts] Advice for closed network - problem with go mod

2022-04-25 Thread David Arsenault
Sean. Brilliant. I don't grasp how I missed the file:// setting. Works beautifully and I am a grateful Gopher. THANK YOU. On Monday, April 25, 2022 at 5:15:33 PM UTC-4 se...@liao.dev wrote: > See https://go.dev/ref/mod#environment-variables > > GOPROXY=file://$(go env GOMODCACHE)/cache/download

Re: [go-nuts] Advice for closed network - problem with go mod

2022-04-25 Thread 'Sean Liao' via golang-nuts
See https://go.dev/ref/mod#environment-variables GOPROXY=file://$(go env GOMODCACHE)/cache/download - sean On Mon, Apr 25, 2022 at 10:08 PM David Arsenault wrote: > Hello. I was hoping to get some smart advice on a problem using go on a > closed network. > > Summary: > - closed network, no ou

[go-nuts] Advice for closed network - problem with go mod

2022-04-25 Thread David Arsenault
Hello. I was hoping to get some smart advice on a problem using go on a closed network. Summary: - closed network, no outside access (painful, I know) - moved all needed packages to ~/go/pkg... - using go modules Problem: go mod insists on using the network (can't). When I set GOPROXY=off go mo

Re: [go-nuts] Using an "internal" repo or org vs. vendor

2022-04-25 Thread 'Sean Liao' via golang-nuts
Back in 2016 the decision was "working as intended", ref: https://github.com/golang/go/issues/16622#issuecomment-255391314 - sean On Mon, Apr 25, 2022 at 5:58 PM 'Tim Hockin' via golang-nuts < golang-nuts@googlegroups.com> wrote: > We have some packages we would like to break out into their own

[go-nuts] Using an "internal" repo or org vs. vendor

2022-04-25 Thread 'Tim Hockin' via golang-nuts
We have some packages we would like to break out into their own repos, but which we don't really want anyone outside of our project to depend on. We could, of course, just document that. But I had this thought that maybe Go's "internal" semantics could be applied here. So as a test, we redirecte

[go-nuts] Re: How to format hour in 24h format without leading 0 ?

2022-04-25 Thread Tamás Gulácsi
strings.Replace(t.Format(time.RFC3339), "T0", "T", 1) ? christoph...@gmail.com a következőt írta (2022. április 25., hétfő, 18:10:45 UTC+2): > I need to format a time stamp hours in 24h format but without leading 0. > This means 7 -> "7" and 17 -> "17". > > For 24h values, the only formatting k

[go-nuts] How to format hour in 24h format without leading 0 ?

2022-04-25 Thread christoph...@gmail.com
I need to format a time stamp hours in 24h format but without leading 0. This means 7 -> "7" and 17 -> "17". For 24h values, the only formatting key value provided and documented is 15. But this produces "7" -> "07" and 17 -> "17" which is not what I need. According to https://gosamples.dev/da

Re: [go-nuts] Possible fuzz testing issue on Windows

2022-04-25 Thread peterGo
On Monday, April 25, 2022 at 2:12:35 AM UTC-4 kortschak wrote: > I have sent https://go-review.googlesource.com/c/go/+/402074 to address > this. > > Dan, For the second and subsequent lines, for _, line := range lines[1:] { line = bytes.TrimSpace(line) // ... } Did you consider be

[go-nuts] Windows Binaries and stdout

2022-04-25 Thread stephen.t....@gmail.com
Hello, I'm cross-compiling my Go application to Windows and I'm having difficulty understanding how Windows interacts with stdout. I'm compiling the Windows binary with the "-H=windowsgui" LD flag. This works great but I've found that the program will never print to stdout, even if the program