Re: [go-nuts] cgo and fatal: morestack on g0

2021-09-10 Thread Ian Lance Taylor
On Thu, Aug 26, 2021 at 4:56 AM Miha Vrhovnik wrote: > > we are using a library via CGO that is the emulator for a real device. > That library also contains a javascript engine which calls to Go for > communication to the outside world. The problem we are facing is that we are > getting more and

Re: [go-nuts] How to calculate CFA from go dwarf

2021-09-10 Thread Ian Lance Taylor
On Tue, Aug 31, 2021 at 4:30 AM Poonai wrote: > > I'm trying to learn how debugger works. With the help of this blog > https://eli.thegreenplace.net/2011/01/27/how-debuggers-work-part-2-breakpoints > I'm able to set breakpoint and continue. > > In the next step of learning, I wanted to learn how

Re: [go-nuts] How to set default signal handler in golang

2021-09-10 Thread Ian Lance Taylor
On Mon, Aug 30, 2021 at 6:52 PM 'Vina C.' via golang-nuts wrote: > > We have a java web application calling C program which in turn using go > program as a library. The go library was build with --buildmode= c-shared. > Now we got a crash with the application, but there is no call stack for go

Re: [go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-10 Thread Kamil Ziemian
Thank you very much, now this sentence about type parameters with structural constraint is clear and I know that I basically get it right. Best Kamil pt., 10 wrz 2021 o 19:07 Ian Lance Taylor napisał(a): > On Fri, Sep 10, 2021 at 5:28 AM Kamil Ziemian > wrote: > > > > I try to work my way thr

Re: [go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-10 Thread Ian Lance Taylor
On Fri, Sep 10, 2021 at 5:28 AM Kamil Ziemian wrote: > > I try to work my way through "Type Parameters Proposal" > (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md). > With my speed, I maybe and reading this very well written document before > type param

Re: [go-nuts] Go serial port package

2021-09-10 Thread arvinsa...@gmail.com
Hello, Can I ask for the best Go package for AT commands to communicate with GSM modem. Arvin On Tuesday, June 25, 2019 at 2:11:15 PM UTC+8 maranatha wrote: > > I have been trying to use both Tarmigan's and Jacob's packages on Windows > and Linux. For basic serial reading they both seem to w

Re: [go-nuts] Re: [security] Go 1.17.1 and Go 1.16.8 are released

2021-09-10 Thread Jérôme LAFORGE
Thanks, that works. Le vendredi 10 septembre 2021 à 13:15:18 UTC+2, Ian Davis a écrit : > On Fri, 10 Sep 2021, at 11:11 AM, Jérôme LAFORGE wrote: > > Hello all, > For testing purpose, how can I install Go 1.16.8 with Go 1.17? > > ``` > $go version > go version go1.17 linux/amd64 > > $go get golan

Re: [go-nuts] Simplifying LLVM bitcode from gollvm

2021-09-10 Thread 'Than McIntosh' via golang-nuts
Hi, The "module asm" at the start of your bitcode dump is actually the export data for the package, so it plays a pretty crucial role. Deleting the export data from the "main" package may work in some cases (since nobody imports main), but it will certainly cause problems if you delete the export

[go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-10 Thread Kamil Ziemian
Hello, I try to work my way through "Type Parameters Proposal" (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md). With my speed, I maybe and reading this very well written document before type parameters will be implemented in Go. xD Jokes aside, when I

Re: [go-nuts] Re: [security] Go 1.17.1 and Go 1.16.8 are released

2021-09-10 Thread Ian Davis
On Fri, 10 Sep 2021, at 11:11 AM, Jérôme LAFORGE wrote: > Hello all, > For testing purpose, how can I install Go 1.16.8 with Go 1.17? > > ``` > $go version > go version go1.17 linux/amd64 > > $go get golang.org/dl/go1.16.8 > go get: installing executables with 'go get' in module mode is deprecat

[go-nuts] Re: [security] Go 1.17.1 and Go 1.16.8 are released

2021-09-10 Thread Jérôme LAFORGE
Hello all, For testing purpose, how can I install Go 1.16.8 with Go 1.17? ``` $go version go version go1.17 linux/amd64 $go get golang.org/dl/go1.16.8 go get: installing executables with 'go get' in module mode is deprecated. Use 'go install pkg@version' instead. For more informa

[go-nuts] Why is my package doc too long on pkg.go.dev?

2021-09-10 Thread Amit Lavon
In my repo overview page , I would like the doc column to only show the first sentence. Here specifically "Package fasta handles fasta I/O". See screenshots below. How can I achieve that? Is there documentation regarding how package docs get rendered o

Re: [go-nuts] smtp.SendMail not using the from argument

2021-09-10 Thread Brian Candler
If you are using Google's SMTP servers, then it validates the From: header and restricts it to those which you have registered against that account. You can register additional addresses (including non-Google ones): Settings > See all settings > Accounts and Import > Send Mail As (Use Gmail to