Re: [go-nuts] missing $GOPATH

2019-09-26 Thread Dan Kortschak
Looking into it it appears that there's active work in go/build.defaultGOPATH that makes returning an informative error message impossible. This made sense when it was done in 428df5e39c0[1], but since then 57568958774[2] has gone in which changes the message from something that was useful to

Re: [go-nuts] gnet: a high-performance, lightweight, nonblocking, event-loop networking library written in pure Go

2019-09-26 Thread Seth Bunce
Really interesting work. (observation) The goroutine approach uses coroutines and abstracts i/o muxing in the language. The downside is having a bunch of coroutines (stacks sitting in memory) waiting for i/o completion. Directly dealing with the i/o muxing system calls requires communicating

Re: [go-nuts] missing $GOPATH

2019-09-26 Thread Dan Kortschak
Yes, that explains it. Perhaps the error could be more informative. On Thu, 2019-09-26 at 20:19 -0700, Ian Lance Taylor wrote: > On Thu, Sep 26, 2019 at 7:36 PM Dan Kortschak > wrote: > > > > I am looking at some changes we have made to make code generation > > independent of GOPATH since from

Re: [go-nuts] missing $GOPATH

2019-09-26 Thread Ian Lance Taylor
On Thu, Sep 26, 2019 at 7:36 PM Dan Kortschak wrote: > > I am looking at some changes we have made to make code generation > independent of GOPATH since from the SettingGOPATH page of the wiki > says "If no GOPATH is set, it is assumed to be $HOME/go on Unix systems > and %USERPROFILE%\go on

[go-nuts] missing $GOPATH

2019-09-26 Thread Dan Kortschak
I am looking at some changes we have made to make code generation independent of GOPATH since from the SettingGOPATH page of the wiki says "If no GOPATH is set, it is assumed to be $HOME/go on Unix systems and %USERPROFILE%\go on Windows." However, when I run `go env` I see `missing $GOPATH` in

[go-nuts] gnet: a high-performance, lightweight, nonblocking, event-loop networking library written in pure Go

2019-09-26 Thread panjf2000
Github Page: https://github.com/panjf2000/gnet gnet is an Event-Loop networking framework that is fast and small. It makes direct epoll and kqueue syscalls rather than using the standard Go net

[go-nuts] Re: [security] Go 1.13.1 and Go 1.12.10 are released

2019-09-26 Thread kddavidson722
You can find them at: https://go.googlesource.com/go/+/refs/heads/release-branch.go1.13-security https://github.com/golang/go/commits/release-branch.go1.13-security https://github.com/golang/go/commits/release-branch.go1.12-security

Re: [go-nuts] Watches / Data breakpoints

2019-09-26 Thread David Finkel
On Thu, Sep 26, 2019 at 3:58 AM Stephen Illingworth < stephen.t.illingwo...@gmail.com> wrote: > Hi all, > > I have an awkward bug I'm trying to understand and I'm missing something > in my toolbox. Is there any way of monitoring a variable for changes made > to it? For example, I have a pointer

[go-nuts] Golang library for - ORM & Schema Migration

2019-09-26 Thread b ram
Hi, Can you pls suggest libs for ORM & Schema Migration. Thanks. -- 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

[go-nuts] Re: Clarification on unsafe conversion between string <-> []byte

2019-09-26 Thread Serhat Şevki Dinçer
Hi, I wrote a string utility library with many tests to ensure the conversion assumptions are correct. It could be helpful. Cheers.. On Wednesday, September 18, 2019 at 12:42:31 PM UTC+3, Francis wrote: > > I am looking at the correct way to convert from a byte

Re: [go-nuts] Why not put contexts in structs?

2019-09-26 Thread Caleb Spare
You can read some more discussion about this recommendation at https://github.com/golang/go/issues/22602. (That's where I propose relaxing it somewhat, since I think the current phrasing is too strict.) On Tue, Sep 24, 2019 at 7:42 PM wrote: > > I've read the documentation recommended never to

Re: [go-nuts] JWT validation only in Middleware

2019-09-26 Thread burak serdar
On Thu, Sep 26, 2019 at 1:14 PM Martin Palma wrote: > > Hello, > > I'm in the process of writing an HTTP API with Go. I use a middleware for > generating and validating JWT tokens. On any incoming request the middleware > checks the JWT and validates it. If valid it adds it to the request

[go-nuts] Re: Why not put contexts in structs?

2019-09-26 Thread anderson . queiroz
Well, one of the reasons is convention. The context should be passes as paramter and be the first paramter as is stated in the package documentation. For sure following the convention it's easier to know where the context came from, when it's available. Inside a struct it's somehow hidden,

[go-nuts] JWT validation only in Middleware

2019-09-26 Thread Martin Palma
Hello, I'm in the process of writing an HTTP API with Go. I use a middleware for generating and validating JWT tokens. On any incoming request the middleware checks the JWT and validates it. If valid it adds it to the request header and calls the next handler. Is it save to use the JWT in

[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: nil map assignment panics. can we do better?

2019-09-26 Thread abuchanan via golang-nuts
Changing how people use maps, or how the language defines/implements maps, feels like a dead end. I tried the nil-map-assignment static analysis provided by staticcheck.io, but it didn't find our most bug unfortunately. So maybe we need to think about how to implement better static analysis

[go-nuts] Re: Go Time #100 with Robert Griesemer and myself

2019-09-26 Thread B Carr
This was interesting. Thank you! On Wednesday, September 25, 2019 at 5:14:51 PM UTC-6, Rob 'Commander' Pike wrote: > > It's now live: https://changelog.com/gotime/100 > > > -rob > > -- You received this message

[go-nuts] WAIT_TIMEOUT inconsistency in golang.org/x/sys/windows

2019-09-26 Thread Marvin Renich
In golang.org/x/sys/windows, the WAIT_* return codes from WaitForSingleObject and WaitForMultipleObjects are defined as untyped integer constants except for WAIT_TIMEOUT, which is a syscall.Errno. All the other syscall.Errno values less than 1700 (the first RPC_ error) begin with ERROR_. The

[go-nuts] InfluxData is hiring remote Go engineers

2019-09-26 Thread mark
InfluxData is the leading open source time series database, purpose built for monitoring metrics and events. We are expanding our talented engineering organization, and we are hiring for a lot of positions that primarily include programming in Go. I am personally one of Influx's first

[go-nuts] Chimithèque v2 released

2019-09-26 Thread Thomas Bellembois
Hello Gophers, I have released a chemical products management application for schools and universities (or others). https://github.com/tbellembois/gochimitheque This is a project started in 2015 that has been rewritten in Go. This may interest chemical engineers or teachers. Regards, Thomas

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] How to search for string value in array

2019-09-26 Thread afriyie . abraham
I have trying to write a function that will accept a string as an input and return another string in a slice but it not working. I have function that unmarshal udp response to a type AuthVectors and then append the type struct data into an array authVecSlice. Below is the code type

[go-nuts] Watches / Data breakpoints

2019-09-26 Thread Stephen Illingworth
Hi all, I have an awkward bug I'm trying to understand and I'm missing something in my toolbox. Is there any way of monitoring a variable for changes made to it? For example, I have a pointer type and I want a debugger to break whenever its value (ie. what it points to) changes. I call this a