Re: [go-nuts] GO API to upload a directory in the github

2022-10-03 Thread PK
yes, I tried with the help of https://github.com/go-git/go-git and there is a basics example (git clone) is given, but when I compile that, it shows the following compilation errors: # github.com/kevinburke/ssh_config /root/go/src/github.com/kevinburke/ssh_config/config.go:318:12: undefined:

Re: [go-nuts] int64(math.Inf(+1)) != math.MaxInt64

2022-10-03 Thread Jan Mercl
On Tue, Oct 4, 2022 at 4:18 AM Jonathan Pearson wrote: > I expected int64(math.Inf(+1)) == math.MaxInt64, but it does not. Quoting from https://go.dev/ref/spec#Conversions, section "Conversions between numeric types" In all non-constant conversions involving floating-point or complex

Re: [go-nuts] Re: Creating and Accessing DLL methods in GO

2022-10-03 Thread Gladiators Squad
We have some disk space restrictions and hence we do not want to include the common code as a library in the service. That will increase the size of each exe. We would like to keep the common code and service code independent of each other. Changes in one should not affect or cause recompilation

Re: [go-nuts] Will two Go runtimes in the same process collide over signals/other?

2022-10-03 Thread Jason E. Aten
On Monday, October 3, 2022 at 10:33:42 PM UTC-5 Ian Lance Taylor wrote: > > > Am I going to get signal handling problems? Is there anything I can do > with the signal handling to avoid them? > > It's possible. On Linux the dynamic linker may override all the > shared library symbols with the

[go-nuts] Re: Debug Go DLL

2022-10-03 Thread Jason E. Aten
Insert fmt.Printf() calls into your code. If you aren't familiar with how to get timestamped, filename:line-number prints to create a log of your run, I demonstrate that here: https://github.com/glycerine/vprint In my experience, prints are how 99% of debugging should be done. If you don't

Re: [go-nuts] scheduling emails

2022-10-03 Thread Kurtis Rader
Note that https://github.com/go-gomail/gomail is apparently no longer maintained (the last commit was seven years ago). And https://github.com/go-mail/mail claims to be an actively maintained fork of the previous project but the most recent commit was four years ago. It's possible the project is

Re: [go-nuts] Will two Go runtimes in the same process collide over signals/other?

2022-10-03 Thread Ian Lance Taylor
On Sun, Oct 2, 2022 at 11:26 PM Jason E. Aten wrote: > > I've tried to come to grips with the lovingly detailed > https://pkg.go.dev/os/signal preamble, but I'm going to ask to get the > experts thoughts. On Linux, my scenario is: > > I have a main program main.go. Via CGO, it loads libmyc.so,

Re: [go-nuts] scheduling emails

2022-10-03 Thread Kurtis Rader
What is "GoMail"? Maybe provide a link to whatever project you're referring to? Also, this mailing list is for discussion of the Go language, not projects written in Go so your question is probably better directed to whatever support forums exist for "GoMail". On Mon, Oct 3, 2022 at 7:19 PM Ajay

Re: [go-nuts] int64(math.Inf(+1)) != math.MaxInt64

2022-10-03 Thread Rob Pike
Looks like a bug to me, so I filed https://github.com/golang/go/issues/56023 Thanks for reporting it. -rob On Tue, Oct 4, 2022 at 1:18 PM Jonathan Pearson wrote: > I expected int64(math.Inf(+1)) == math.MaxInt64, but it does not. > > In fact, these three values are equal: >

[go-nuts] int64(math.Inf(+1)) != math.MaxInt64

2022-10-03 Thread Jonathan Pearson
I expected int64(math.Inf(+1)) == math.MaxInt64, but it does not. In fact, these three values are equal: int64(math.Inf(+1)) int64(math.Inf(-1)) math.MinInt64 This surprised me, and the language spec didn't clarify this specific behavior, so I wondered whether it was intentional. If so, why?

[go-nuts] scheduling emails

2022-10-03 Thread Ajay Shinde
Hi Everyone, Is it possible to schedule emails with GoMail? -- 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

[go-nuts] Pure Go implementation of the Opus audio Codec

2022-10-03 Thread Sean DuBois
Hello Gophers, I am excited to share [0] it is a Pure Go implementation of the Opus[1] audio codec. It has a long way to go still, but is far enough long that contributors and users should find it useful! If you have ever done web conferencing, watched YouTube or played a video games you have

Re: [go-nuts] Re: Creating and Accessing DLL methods in GO

2022-10-03 Thread Brian Candler
On Monday, 3 October 2022 at 10:40:06 UTC+1 squadglad...@gmail.com wrote: > We are trying to use a common code as a DLL which is shared by multiple > services. > You've mixed a problem and solution statement together. You want to share code between multiple services: if so, there are other

Re: [go-nuts] Re: Creating and Accessing DLL methods in GO

2022-10-03 Thread Gladiators Squad
We are trying to use a common code as a DLL which is shared by multiple services. The services need to support multiple platforms like Linux((amd64 and Armv7), Windows and FreeBSD. and we are using the following command to generate the DLL go build -buildmode=c-shared -o calc.so calc.go -- linux

[go-nuts] Will two Go runtimes in the same process collide over signals/other?

2022-10-03 Thread Jason E. Aten
I've tried to come to grips with the lovingly detailed https://pkg.go.dev/os/signal preamble, but I'm going to ask to get the experts thoughts. On Linux, my scenario is: I have a main program main.go. Via CGO, it loads libmyc.so, a large, legacy, C .so shared library. Obviously the