Re: [go-nuts] where is GOROOT set?

2022-12-09 Thread pat2...@gmail.com
thanks, and the playground is nice. I think this is saying that if I want a baz and bar executable (chmod +x) then I need the "package main" in separate folders/directories I don't think I'm close enough to understanding this stuff to focus on optimizing it to the fewest possible go.mod files,

Re: [go-nuts] where is GOROOT set?

2022-12-08 Thread pat2...@gmail.com
Thanks I've read the official tutorial and your create-module docs. They help, but I am still having issues getting this to hang together. I got the treesort example to work. Now I'm creating a new module, in a new subdirectory of my repositories and I've done the go mod init I have three go

Re: [go-nuts] where is GOROOT set?

2022-11-25 Thread pat2...@gmail.com
Thanks That seems to be the solution -- 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

Re: [go-nuts] where is GOROOT set?

2022-11-23 Thread pat2...@gmail.com
Just in case my use of the "windows installer" for go and then using WSL/bash > was confusing assorted magic env variables, I uninstalled/deleted the Windows installed version then I downloaded the "linux" version, and did the usual "sudo tar " install Made no difference Get the same error

Re: [go-nuts] where is GOROOT set?

2022-11-23 Thread pat2...@gmail.com
On Wednesday, November 23, 2022 at 7:00:35 PM UTC-5 kra...XXX wrote: > On Windows Go is normally installed to C:\Program Files\Go. You should not > put your source code inside that directory. Put the source for your > projects somewhere else such as %HOME%/go. > My source files are not under

Re: [go-nuts] where is GOROOT set?

2022-11-23 Thread pat2...@gmail.com
On Wednesday, November 23, 2022 at 6:31:51 PM UTC-5 se... wrote: > output of `go env` please > I am using WSL (bash under Windows 11) Shell env: env HOSTTYPE=x86_64 LESSCLOSE=/usr/bin/lesspipe %s %s LANG=C.UTF-8 WSL_DISTRO_NAME=Ubuntu USER=pfarrell

Re: [go-nuts] where is GOROOT set?

2022-11-23 Thread pat2...@gmail.com
I've separated my code into separate subdirectories, added a go.mod ran go mod tidy on each. I'm mostly back where I started, which a better source file tree I'm trying to test the "treesort" package from the "Donovan and Kernigan" The Go programing language book. When I connect into the

[go-nuts] Re: How to High-pass filter method for well height data

2022-11-23 Thread pat2...@gmail.com
You want to find a discrete fast fourier transform package. convolve with a suitable filter, and then inverse the DFFT -- 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

Re: [go-nuts] where is GOROOT set?

2022-11-20 Thread pat2...@gmail.com
Thanks again Bit of background, I've been playing with go on and off for five or six years. I have decades of experience in various systems programming languages, including things like TOPS-10 macro, c, bliss, etc. Go is very attractive to my systems-internals side. About five years ago I

Re: [go-nuts] where is GOROOT set?

2022-11-18 Thread pat2...@gmail.com
thanks On Friday, November 18, 2022 at 1:10:40 PM UTC-5 Brian Candler wrote: > You still should have a go.mod. Even if you don't intend to publish your > code anywhere, you give it a module name - anything will do as long as it > meets the syntax requirements. > OK, I can have a go.mod But

Re: [go-nuts] where is GOROOT set?

2022-11-18 Thread pat2...@gmail.com
OK, all the source files are in the same directory I did the go mod it didn't work as you typed, but I got it to work I'm pretty sure I don't understand packages and modules. I really an not using any of that, I just have a half dozen go files some with main() and some with tests. I am now

Re: [go-nuts] where is GOROOT set?

2022-11-17 Thread pat2...@gmail.com
Here I clear it, same result: pfarrell@Alien15:~/whome/sandbox/gows/src/github.com/pfarrell51/cmd$ export GOROOT= pfarrell@Alien15:~/whome/sandbox/gows/src/github.com/pfarrell51/cmd$ printenv GOROOT pfarrell@Alien15:~/whome/sandbox/gows/src/github.com/pfarrell51/cmd$ go test treesort_test.go

[go-nuts] where is GOROOT set?

2022-11-17 Thread pat2...@gmail.com
I'm missing something fundamental. I have set GOROOT to my current directory, which contains my go source files but I can't test a trivial program treesort_test.go:11:2: package treesort is not in GOROOT (C:\Program Files\Go\src\treesort) It looks like the value of the GOROOT variable is set to

Re: [go-nuts] fs.Glob, fs.DirWalk, etc. does the pattern support complex regex

2022-11-04 Thread pat2...@gmail.com
Thanks to all who replied. On Friday, November 4, 2022 at 8:47:51 AM UTC-4 Konstantin Khomoutov wrote: > On Thu, Nov 03, 2022 at 01:20:16PM -0700, pat2...@gmail.com wrote: > > > This has to be a FAQ, but my google foo for searching it is not clear > > The docs say: "

[go-nuts] fs.Glob, fs.DirWalk, etc. does the pattern support complex regex

2022-11-03 Thread pat2...@gmail.com
This has to be a FAQ, but my google foo for searching it is not clear The docs say: " The syntax of patterns is the same as in path.Match." The pattern seems to implement only fairly simple search expressions. I'd like to search for "./*.MP4", but of course to be platform independant I have to

[go-nuts] VSstudio can't talk to server for Marketplace to get go extension

2022-10-31 Thread pat2...@gmail.com
I'm running a bog standard Windows 11 system on an Intel powered laptop. I just installed Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.6 and go version go version go1.19.2 windows/amd64 When I click on the Extensions -> Visual Studio Marketplace it hang trying to talk

[go-nuts] Re: super large virtual memory allocation for simplest golang apps, why?

2021-01-15 Thread pat2...@gmail.com
On Thursday, January 14, 2021 at 12:27:25 PM UTC-5 laos...@gmail.com wrote: > I run the helloworld net/http on 128MB MIPS 32bit cpu, helloworld takes > 700MB VSS each, I then run 40 of them(each takes 4M RSS) in parallel, and I > got 'can't fork: out of memory' if I set overcommit_memory to 2,

Re: [go-nuts] net/http TLS issue

2020-10-18 Thread pat2...@gmail.com
On Sunday, October 18, 2020 at 4:39:46 PM UTC-4 Rich wrote: > I have no problem writing this myself and I already have ideas on what I > am going to do, but before I do that I thought I'd ask and see if anyone > knew of a package, or some easier way that did this already. I've spent > hours in