Re: [go-nuts] Re: Looking for a specialized proxy package

2023-03-16 Thread Matthew Zimmerman
I would abandon the IOT device doing any serving of data to any client and instead make your cloud instance the web server rendering data it obtains via grpc from the IOT devices. This makes the design much simpler on the IOT side and takes any direct access to them away which simplifies the desig

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-16 Thread Andy Balholm
I would guess that in the case of AST nodes, you're likely more interested in the *identity* of the nodes than their *values*. In that case, you should use the pointers to the nodes as your map keys. If the *values* truly are what you care about, use the go/format package to convert the node ba

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-16 Thread alex-coder
>> Sure, convert to a string and use that as a map key. :-) no, no, no. it looks very very ugly. четверг, 16 марта 2023 г. в 00:26:35 UTC+3, Ian Lance Taylor: > On Wed, Mar 15, 2023 at 2:16 PM alex-coder wrote: > > > > Ian, thank you. > > but may be the is any workaround ? > > Use as a key not

Re: [go-nuts] Can't capture stderr after upgrading to glog v1.1.0

2023-03-16 Thread 'Chressie Himpel' via golang-nuts
On Thu, Mar 16, 2023 at 5:27 PM Ian Lance Taylor wrote: > > [ + jba ] > > On Thu, Mar 16, 2023 at 8:56 AM 'Stuart McLean' via golang-nuts > wrote: > > > > Hi there, > > > > With glog v1.0.0 I used to be able to easily capture stderr logs for in > > integration tests. With the upgraded version th

Re: [go-nuts] Issue with glog https://github.com/golang/glog/releases/tag/v1.1.0

2023-03-16 Thread 'Chressie Himpel' via golang-nuts
On Thu, Mar 16, 2023 at 5:24 PM Ian Lance Taylor wrote: > > [ + jba ] > > On Thu, Mar 16, 2023 at 8:56 AM Chandra S. Rangavajjula (Nokia) > wrote: > > > > Hi, > > I am using glog in my application development. With the latest tag > > (https://github.com/golang/glog/releases/tag/v1.1.0), there st

Re: [go-nuts] Can't capture stderr after upgrading to glog v1.1.0

2023-03-16 Thread Ian Lance Taylor
[ + jba ] On Thu, Mar 16, 2023 at 8:56 AM 'Stuart McLean' via golang-nuts wrote: > > Hi there, > > With glog v1.0.0 I used to be able to easily capture stderr logs for in > integration tests. With the upgraded version this no longer works. I tried > various suggestions that I found online and e

Re: [go-nuts] error on installing cobra package using command go get github.com/spf13/cobra

2023-03-16 Thread Ian Lance Taylor
On Thu, Mar 16, 2023 at 8:56 AM 'Akhil Agrawal' via golang-nuts wrote: > > tried with 1.12,1.16,1.19,1.20 This works for me, starting in an empty directory, with Go 1.20. > go mod init example.com go: creating new go.mod: module example.com > go get github.com/spf13/cobra go: added github.com/in

Re: [go-nuts] Issue with glog https://github.com/golang/glog/releases/tag/v1.1.0

2023-03-16 Thread Ian Lance Taylor
[ + jba ] On Thu, Mar 16, 2023 at 8:56 AM Chandra S. Rangavajjula (Nokia) wrote: > > Hi, > I am using glog in my application development. With the latest tag > (https://github.com/golang/glog/releases/tag/v1.1.0), there started a new > panic error with -vmodule. This issue was not there in olde

[go-nuts] Issue with glog https://github.com/golang/glog/releases/tag/v1.1.0

2023-03-16 Thread Chandra S. Rangavajjula (Nokia)
Hi, I am using glog in my application development. With the latest tag (https://github.com/golang/glog/releases/tag/v1.1.0), there started a new panic error with -vmodule. This issue was not there in older version. #

Re: [go-nuts] Re: Looking for a specialized proxy package

2023-03-16 Thread egonbits
I've seen this type of SSH/rsync access used many times (and have used it myself to great effect), but it is worth considering if you feel confident being able to sufficiently secure the ssh access in your threat model. Your system, if compromised, could serve as an ingress and pivot to other syste

[go-nuts] Can't capture stderr after upgrading to glog v1.1.0

2023-03-16 Thread 'Stuart McLean' via golang-nuts
Hi there, With glog v1.0.0 I used to be able to easily capture stderr logs for in integration tests. With the upgraded version this no longer works. I tried various suggestions that I found online and even this library: https://github.com/zenizh/go-capturer but nothing seems to work. Is there

Re: [go-nuts] error on installing cobra package using command go get github.com/spf13/cobra

2023-03-16 Thread 'Akhil Agrawal' via golang-nuts
tried with 1.12,1.16,1.19,1.20 On Thursday, March 16, 2023 at 12:20:16 AM UTC+5:30 Ian Lance Taylor wrote: > On Wed, Mar 15, 2023 at 11:10 AM akhil agrawal > wrote: > > > > Hi Team, i am getting following error > > go get github.com/spf13/cobra github.com/spf13/cobra imports > github.com/spf13/

Re: [go-nuts] Re: Looking for a specialized proxy package

2023-03-16 Thread Tamás Gulácsi
As far as I understand, the requirement is to have a link presented by the cloud server, that is proxied to the IOT's HTTP handler. The latter is only on the IOT's localhost, accessible on the cloud server through ssh reverse tunneling (so, a specific port on the cloud server's localhost). This

Re: [go-nuts] How to encode/decode string to binary in golang

2023-03-16 Thread Van Fury
Thank you all for the clarification. At least I now know in this case octetString is referring to []byte. I did the conversion to []byte and the radius server accepted the result. I was just confused when the one handling the radius server asked for "raw binary" in the response. Help appreciated!!

Re: [go-nuts] Re: Looking for a specialized proxy package

2023-03-16 Thread Vladimir Varankin
Hey Michael, > The piece I'm missing is how to construct a proxying handler that will use the identifier in the link to look up the tunnel port and fetch the IOT's home page and thereafter make it seem as though the user is directly browsing the IOT. If I got the question right, there are two