[go-nuts] [ANN] THUMBAI v1.0.0-beta.2 Released! - A Go Mod Repository, Go Vanity Server and Proxy Server

2018-12-26 Thread Jeevanandam M.
Website: https://thumbai.app Documentation: Get Started - https://thumbai.app/docs/get-started Upgrade - https://thumbai.app/docs/upgrade Your feedback is very valuable. Thanks. Cheers, Jeeva -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Kevin Conway
> I believe https://golang.org/pkg/encoding/json/#Decoder.Buffered was added for this purpose. I just caught on that this method is exactly what you showed in the original message. I guess my input can be reduced to "I think that's your only option when using the decoder". I do think you've

Re: [go-nuts] Re: Go : Books?

2018-12-26 Thread dicksilk
SO! it's been about 10+ years since the original post (quoted below) and yet it appears at the top of a search for "books binaries." My question (before jumping into the 10-year-old details) was "is there a binary group where book files may be posted / traded online?" Meanwhile, if I miss any

Re: [go-nuts] [gollvm] Can't retrieve LLVM intermediate representation

2018-12-26 Thread 'Than McIntosh' via golang-nuts
Hello, It looks as though you may not be taking into account the caching done by the "go" command. The go "build" command caches compile/build results and will copy things out of the cache if it can establish that the source in question hasn't changed. In your transcript that's probably what the

Re: [go-nuts] Number threads run by a simple golang application

2018-12-26 Thread Ian Lance Taylor
On Wed, Dec 26, 2018 at 8:49 AM wrote: > > I'm trying to understand more about the threads running in a golang > application. > I ran the following endless loop > > package main > > import ( > "fmt" > "os" > ) > > func main() { > fmt.Println("main running ",os.Getpid()) > for{} >

[go-nuts] Number threads run by a simple golang application

2018-12-26 Thread samuel
Hi, I'm trying to understand more about the threads running in a golang application. I ran the following endless loop package main import ( "fmt" "os" ) func main() { fmt.Println("main running ",os.Getpid()) for{} } When I checked what threads are running I got the following

Re: [go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Kevin Conway
> For example, the error returned may show : "*invalid character 'G' looking for beginning of value*". But you can't see the original message. I believe https://golang.org/pkg/encoding/json/#Decoder.Buffered was added for this purpose. For example, https://play.golang.org/p/yAn2fypIELc > 1- I'm

[go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Tamás Gulácsi
You haven't shown the code, so I don't know. json.Decoder can decode json streams - one object at a time (separated by whitespace). -- 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

[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread thepudds1460
Hi Robert, Just to echo what Sam said, there is a healthy chance this could be explained by a version mismatch, although maybe it could be something else. When you enable modules, by default it will look for the latest valid semver tag (https://semver.org) to satisfy any dependencies. For

[go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Thomas S
Sorry I don't get it ? My decoder is already built with it. Thank you, Thomas -- 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 modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread Robert Recchia
and the repo that is failing is my own repo where we do not use versions/releases On Tuesday, 25 December 2018 20:22:22 UTC-5, Robert Recchia wrote: > > I have been testing out the new go modules feature. Our application > compiles/installs without problems using the normal $GOPATH way and

[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread Robert Recchia
The versions are the same i have verified through md5 sums and if i remove the go.mod and go.sum files and then run a go build it compiles without problems. On Tuesday, 25 December 2018 20:22:22 UTC-5, Robert Recchia wrote: > > I have been testing out the new go modules feature. Our

[go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Tamás Gulácsi
Try json.NewDecoder. -- 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. For more options, visit

[go-nuts] Json decode : Monitoring errors properly

2018-12-26 Thread Thomas S
Hello, I need help to improve the reliability of a proxy and numerous servers in Golang, currently in use by a certain number of users. I receive json stream by TCP and websocket. The only way to do it properly is to used json decode. (notably because websocket payload system can split in