[go-nuts] Win xp

2016-08-30 Thread Robert Solomon
I'm just learning go. I wrote a trivial pgm on a Windows 10 machine. I noticed that the exe file runs on Windows 7 and 10 but not XP. Is that by design? Robert Solomon On Aug 30, 2016 2:21 PM, <golang-nuts@googlegroups.com> wrote: golang-nuts@googlegroups.com <https://groups.google.

[go-nuts] Newbie Struggling w/ Hashing

2016-09-19 Thread Robert Solomon
Hi. I'm trying to learn Go after many years of using a different language. My development machine runs Ubuntu 16.04 amd64, go 1.6.2 linux/amd I compared the output of the following code, and my output differs from the std utilities such as sha1sum, sha215sum, etc. I used

[go-nuts] help with termbox-go

2016-10-30 Thread Robert Solomon
Hi. I am learning go, and have no trouble w/ the CLI interface on either Ubuntu 16.04-64 bit or win10-64 bit. However, I am trying to learn termbox-go. My simple hello world works on Ubuntu but does not on win10. First time I tried this on win10, I got a runtime error about a deadlock situation.

[go-nuts] Suggestions for go 2

2017-08-12 Thread Robert Solomon
Is there any one interested in compile time and date like the __time__ and __date__ macros in c On Aug 8, 2017 7:26 PM, wrote: golang-nuts@googlegroups.com Google Groups

Re: [go-nuts] Re: Reading os.Stdin, Unbuffered

2017-11-30 Thread Robert Solomon
Thanks On Nov 28, 2017 8:03 PM, "Robert Solomon" <drrob...@gmail.com> wrote: I trying to learn how to use pseudo-terminal-go. It works fine under Ubuntu 16.04 amd64. But not fine on win10 64 bit. go get github.com/carmark/pseudo-terminal-go/terminal #github.com/carmark/ps

[go-nuts] Re: Reading os.Stdin, Unbuffered

2017-11-28 Thread Robert Solomon
I trying to learn how to use pseudo-terminal-go. It works fine under Ubuntu 16.04 amd64. But not fine on win10 64 bit. go get github.com/carmark/pseudo-terminal-go/terminal #github.com/carmark/pseudo-terminal-go/terminal github.com\carmark\pseudo-terminal-go\terminal\terminal.go:715:15:

[go-nuts] Re: Concurrent and blocking data

2018-04-09 Thread Robert Solomon
I would like to know the answers to 2 and 3 I'm a relatively new gopher On Mon, Apr 9, 2018, 12:59 PM Robert Solomon <drrob...@gmail.com> wrote: > I would like to know the answers to 2 and 3 > > I'm a relatively new gopher > >> -- You received this message be

[go-nuts] Concurrent and blocking data

2018-04-09 Thread Robert Solomon
I would like to know the answers to 2 and 3 I'm a relatively new gopher > -- 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

[go-nuts] Re: compiling from within vim not working

2018-11-19 Thread Robert Solomon
I'm running gvim when I try this. I was able to symlink as an earlier poster instructed. Now I'm having a different problem. I'm getting the error that no go files are found. My code is in ~/go/src, so each file is dir/code file.go. gvim make is confused by that -- You received this

[go-nuts] Re: Learning Data Structures and algorithms with Golang

2019-04-14 Thread Robert Solomon
I actually find it useful to have these posted here. I'm a notice Go programmer, and these references help me. I also saw a reference to "Hands On GUI Application Development in Go," which I'm starting to read now. On Friday, April 5, 2019 at 10:28:52 AM UTC-4, Bhagvan Kommadi wrote: > >

[go-nuts] Need help to launch hello.go

2019-04-30 Thread Robert Solomon
I use win 10. I have my code as subdirectories in src. I see that you don't. Hello/ is not in src/. And I then run go install from within src/ I also do this on ubuntu. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: Can you spare a Samsung S5 for the Gio project?

2019-07-30 Thread Robert Solomon
I have one that works. I'm in nyc area. -- 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

Re: [go-nuts] Re: go 1.13 won't compile

2019-09-28 Thread Robert Solomon
I'm getting the sense that my question is below getting an answer I can understand and follow. 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

[go-nuts] Re: go 1.13 won't compile

2019-09-26 Thread Robert Solomon
Should I file an issue -- 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

[go-nuts] Re: go 1.13 won't compile

2019-09-23 Thread Robert Solomon
If I understand you, you want me to not use ~/go/sec? That confuses me. Am I getting expected behavior? -- 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

[go-nuts] Re: go 1.13 won't compile

2019-09-24 Thread Robert Solomon
Sometimes I hate autocorrect I mean ~/go/src -- 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

Re: [go-nuts] go 1.13 won't compile

2019-09-30 Thread Robert Solomon
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 On Mon, Sep 30, 2019, 9:17

Re: [go-nuts] go 1.13 won't compile

2019-09-30 Thread Robert Solomon
missing func: > > func GetUserGroupStr(f os.FileInfo) (string, string) { > return "foo", "bar" > } > > > > Em segunda-feira, 30 de setembro de 2019 11:34:52 UTC-3, Robert Solomon > escreveu: >> >> Your experience matches mine when c

[go-nuts] pointer receiver basic question

2020-07-23 Thread Robert Solomon
Hi. I'm going thru the example code for container/heap. In the documentation is this example: func (h *IntHeap) Pop() interface{} { old := *h n := len(old) x := old[n-1] *h = old[0 : n-1] // my question is about this line. return x } Why does the last assignment have to assign to a

[go-nuts] Re: Go 1.17 Beta 1 is released

2021-06-14 Thread Robert Solomon
I read the draft release notes. Does Go 1.17 intend on supporting GOPATH mode. I could not find any notes on this. On Thursday, June 10, 2021 at 11:47:16 AM UTC-4 dmit...@golang.org wrote: > Hello gophers, > > We have just released go1.17beta1, a beta version of Go 1.17. > It is cut from the

[go-nuts] Re: Modules... why it has to be so painfull?

2021-04-08 Thread Robert Solomon
I agree w/ your basic premise, that modules are quite painful. However, after much trials, tribulations, and posting here, I received the solution that allows me to structure my code as before (and like you, all in ~/go/src). I only had to edit the import strings to reflect "src/mypackage"

[go-nuts] Re: Best Go paid course

2021-10-30 Thread Robert Solomon
Based on this recommendation, I started Bill's class and got the book. I like the class a lot. Thanks for the post (sorry for my response not originally linking to this thread) On Saturday, October 23, 2021 at 5:19:30 PM UTC-4 leam...@gmail.com wrote: > Ahmed, > > I would recommend two pairs

[go-nuts] http://groups.google.com/group/golang-nuts/t/c097016fb4fd97e?utm_source=digest_medium=email

2021-10-29 Thread Robert Solomon
Based on this recommendation, I started Bill's class and got the book. I like the class a lot. Thanks for the post On Sat, Oct 23, 2021, 7:23 PM wrote: > golang-nuts@googlegroups.com > > Google >

Re: [go-nuts] cgo error I don't understand

2021-11-04 Thread Robert Solomon
Wed, Nov 3, 2021 at 5:40 PM Robert Solomon wrote: > > > > I'm setting up a new Windows10 computer. I installed Go 1.17.2 and > mingw64 for cgo. When I tried to compile a project that uses cgo, I got > this error: > > > > cgo: exec gcc: gcc resolves to executa

[go-nuts] cgo error I don't understand

2021-11-03 Thread Robert Solomon
I'm setting up a new Windows10 computer. I installed Go 1.17.2 and mingw64 for cgo. When I tried to compile a project that uses cgo, I got this error: cgo: exec gcc: gcc resolves to executable relative to current directory (.\\msys64\mingw64\bin\gcc.exe) This is a program that compiles fine

Re: [go-nuts] Threats found on Win 10 21H1 64 bit computer

2021-12-16 Thread Robert Solomon
Since this is Windows Defender, the bug report would have to go to Microsoft. I've heard that they largely ignore such reports. So it goes. Thanks for answering me, though. --rob solomon On Wednesday, December 15, 2021 at 9:13:12 PM UTC-5 Ian Lance Taylor wrote: > On Wed, Dec 15, 2021 at

Re: [go-nuts] Re: Best IDE for GO ?

2023-08-26 Thread Robert Solomon
Showing the call stack is a core function of the Delve debugger for Go. See github.com/go-delve/delve/cmd/dlv. Install w/ go install github.com/go-delve/delve/cmd/dlv@latest Once learning how to use delve, then any IDE/editor will work. I believe that both VSCode and Goland use delve's

[go-nuts] Re: Golang and virustotal

2022-05-13 Thread Robert Solomon
My work around is to compile using -ldflags="-s -w" This has worked for the cases when my files make Windows unhappy. I reported it as a bug to Microsoft months ago; I see that they got right on it. --rob solomon On Wednesday, May 11, 2022 at 11:50:20 AM UTC-4 Rusco wrote: > Regarding:

[go-nuts] Re: find hwnd on win 10

2022-06-27 Thread Robert Solomon
Howard, based on your advice, my basic code now works as I wanted. I got it working without needing xpzed/win32. Thank you again. --rob solomon On Sunday, June 26, 2022 at 3:44:01 PM UTC-4 Howard C. Shaw III wrote: > > >

[go-nuts] Re: find hwnd on win 10

2022-06-26 Thread Robert Solomon
The following code will flash the found window on the task bar, but will not show it so I can see it. I'm looking for something that is similar to takecommand by JPSoft, which has an activate command that will make the desired window pop up and be active. package main import ( "flag"

[go-nuts] find hwnd on win 10

2022-06-20 Thread Robert Solomon
Hi. I'm struggling to get this code to return a non-zero hwnd. I'm compiling w/ Go 1.18.3 Any help would be most appreciated. package main import ( "fmt" w32a "github.com/JamesHovious/w32" w32 "github.com/gonutz/w32/v2" "runtime" const lastModified = "June 20, 2022" func main()

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
Thank you very much On Fri, Oct 28, 2022, 8:15 AM Marvin Renich wrote: > * Robert Solomon [221028 07:36]: > > On ubuntu 22.04, I would like the walk function to NOT follow symlinks > to > > other filesystems. The find command uses the -xdev switch to achieve > this. >

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-29 Thread Robert Solomon
this; it continues to the next target correctly. I feel I'm missing something. Am I? On Friday, October 28, 2022 at 10:06:39 PM UTC-4 Robert Solomon wrote: > Thank you very much > > On Fri, Oct 28, 2022, 8:15 AM Marvin Renich wrote: > >> * Robert Solomon [221028 07:36]: >> > On

[go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
On ubuntu 22.04, I would like the walk function to NOT follow symlinks to other filesystems. The find command uses the -xdev switch to achieve this. How can I get walk to behave like the -xdev switch to find? Thx -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Using golang variable in bash script Command

2022-09-20 Thread Robert Solomon
I've done this for Linux and windows, as I regularly use both. But I used a different strategy. I used the os functions to retrieve a slice of strings that I can then filter and sort as I desire. And I use the command line to get the target string. github.com/drrob1/src/dsrt also in that

[go-nuts] Struggling w/ use of a waitgroup

2022-10-02 Thread Robert Solomon
https://go.dev/play/p/gIVVLsiTqod I'm trying to understand concurrency, so I modified a small routine I came across quite a while ago. It's a grep command, but since I have its source, I am trying to understand its concurrency. My problem is that when there are more than about 1800 files to be

Re: [go-nuts] Struggling w/ use of a waitgroup

2022-10-02 Thread Robert Solomon
I don't know how to change that. I had an issue w/ the main routine ending before some of the worker routines were done so I saw incomplete results. How do I tweak my logic so that I don't need a WaitGroup? I forgot about my platform specific code. Here is the rest of that, that is in a

[go-nuts] go-flags

2023-01-15 Thread Robert Solomon
I'm trying to learn how to use the go-flags package from github. When I do: go get github.com/jessevdk/go-flags, I'm getting the error below, and I don't understand why go get: module github.com/jessievdk/go-flags: git ls-remote -q origin in

Re: [go-nuts] memory safe languages question

2023-07-24 Thread Robert Solomon
member reading articles about Ada when it was being > designed. But that doesn't mean I'm qualified to opine on it as a language > and there are unlikely to be many people on this mailing list who are > qualified. > > On Sun, Jul 23, 2023 at 5:23 PM Robert Solomon wrote: > >>

[go-nuts] memory safe languages question

2023-07-23 Thread Robert Solomon
I've been reading that the NSA wrote a position paper last year about memory safe languages, which include C#, Go, Java, Ruby, Rust and Swift. It's clear to me why C and C++ are not on that list. I always thought that Ada sought to be memory safe, or is equivalent to that by saying that Ada

[go-nuts] how do I use go test for code that needs a flag defined in flag package

2023-05-06 Thread Robert Solomon
I have a routine that I want to test, that I have to pass a flag into this test. This is on Win10 using Go 1.20.4. This code is here: https://go.dev/play/p/p-YeGDk1KaM I want to pass a flag I call dots into the test code for this function. I tried from within the correct directory go

[go-nuts] Re: how do I use go test for code that needs a flag defined in flag package

2023-05-06 Thread Robert Solomon
either. How do I test the operations of the flag package when running go test? On Saturday, May 6, 2023 at 3:45:10 PM UTC-4 Robert Solomon wrote: > Looks like I didn't copy everything I have to the playground. But I do > have the correct imports and the top statement, package main. >

[go-nuts] Re: how do I use go test for code that needs a flag defined in flag package

2023-05-06 Thread Robert Solomon
flag.Parse from there. > > On Saturday, May 6, 2023 at 4:03:59 PM UTC-4 Robert Solomon wrote: > >> A related issue: >> Now that I can run go test and it's running, how do I define the flag. >> Currently, I define it in main(), and also the flag.Parse() is in main(). >&

[go-nuts] Re: how do I use go test for code that needs a flag defined in flag package

2023-05-06 Thread Robert Solomon
o.dev/play/p/HFJBO1j54iE > > On Saturday, 6 May 2023 at 14:02:35 UTC+1 Robert Solomon wrote: > >> >> I have a routine that I want to test, that I have to pass a flag into >> this test. This is on Win10 using Go 1.20.4. This code is here: >> https://go.dev/play

[go-nuts] Re: new in golang

2024-04-14 Thread Robert Solomon
I'm not clear on what you're asking. I'm a hobby programmer, and I've been using Go for a few years for my own purposes. On Sunday, April 14, 2024 at 1:47:32 PM UTC-4 leonardo lima peixoto wrote: > Oh nice, I'm a beginner and I want to learning golang as well. > > Em sábado, 13 de abril de

[go-nuts] Re: new in golang

2024-04-14 Thread Robert Solomon
I'm a hobby programming that's been using Go for a few years. I'm willing to help; others here will likely also answer questions for you On Sunday, April 14, 2024 at 1:47:32 PM UTC-4 leonardo lima peixoto wrote: > Oh nice, I'm a beginner and I want to learning golang as well. > > Em sábado, 13

[go-nuts] Re: couldn't print numbers ordered with goroutine

2024-04-20 Thread Robert Solomon
channels are not queues, as Justin said On Saturday, April 20, 2024 at 8:18:18 PM UTC-4 Justin Israel wrote: > On Sunday, April 21, 2024 at 11:18:24 AM UTC+12 Taňryberdi Şyhmyradow > wrote: > > Hello guys, > For the following lines, I wanted to print numbers in ordered, but > couldn't. Could