Re: [go-nuts] Why Does $GOPATH/src Not Exist?

2025-02-22 Thread Björn Försterling
Thanks for the insights. I still need to figure out how to tell the `Config` method of the `go/types` package to look for imports at the right places. (which is probably at `$(go env GOMODCACHE)`) Am So., 23. Feb. 2025 um 04:13 Uhr schrieb Kurtis Rader < kra...@skepticism.us>: > That book was fi

Re: [go-nuts] Why Does $GOPATH/src Not Exist?

2025-02-22 Thread Kurtis Rader
That book was first published in 2015 -- ten years ago. Things have changed a lot since then. In particular, GOPATH mode is no longer the default and effectively a historical artifact having been replaced by Go module mode. In fact, Go modules were first introduced in Go 1.11 which was released in

[go-nuts] Re: Failing unit test in Windows (TestLookupLocalPTR)

2025-02-22 Thread Mark Geisert
I don't know about the Go aspects of your issue, but in the hosts file it is customary to list the IP address once and the corresponding host and its aliases all on the same line. There should be a character between the IP address and the host name(s), and spaces between the names. HTH, ..mar

[go-nuts] Failing unit test in Windows (TestLookupLocalPTR)

2025-02-22 Thread Albert S
Hello Gophers, I'm running unit test in my local windows machine (Windows 11 Pro) and I get a test failure for TestLookupLocalPtr using my locally compiled Go 1.25 here is the test command that I run PS C:\Users\grand\projects\go\src\net> ../../bin/go test -v ./... === RUN TestLookupLocalPTR

Re: [go-nuts] Re: https://go-talks.appspot.com still working?

2025-02-22 Thread srini muly
Hi Sebastien Binet, can you show us how to do it? I'm struggling to deploy my slides to app engine on GCP. thanks, Srini On Saturday, May 13, 2023 at 11:15:52 AM UTC-4 Sebastien Binet wrote: > > On Sat May 13, 2023 at 17:02 CET, Jens-Uwe Mager wrote: > > Someone must have fixed something, as

[go-nuts] Why Does $GOPATH/src Not Exist?

2025-02-22 Thread Björn Försterling
Hello, according to "The Go Programming Lanuage" (Alan A. A. Donovan/Brian W. Kernighan) page 291 the "GOPATH" should have a subdirectory named "src". However that dir is not present on my system: $ ls $(go env GOPATH) bin pkg When doing a type check with the "go/types" package and the defaul

[go-nuts] Exposing newcoro/coroswitch

2025-02-22 Thread Nuno Cruces
Hi! Is there any appetite to expose runtime.newcoro/coroswitch? They seem really useful beyond iter.Pull. They actually have the go:linkname handshake, but are then explicitly banned