[go-nuts] no go executable after building from source 1.5.4

2018-03-24 Thread jaap . aarts1
If I try to build a golang setup from the release-branch.go1.5 branch, only the goftm executable is put in place. I used the install instructions from doc/install-source.html and used all.batch. make.batch just stops aftert line 157/8(CC=$CC GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH "$GOTOOLDIR"/go_boot

[go-nuts] Silent errors during template execution

2018-03-24 Thread Kevin Malachowski
Can you post a minimal (but compilable and runnable) example which shows exactly what isn't working? You can create and share this conveniently using play.golang.org. Creating a small, self-contained example is helpful in that it helps us see exactly what isn't working, and can be helpful to yo

[go-nuts] Silent errors during template execution

2018-03-24 Thread DrGo
Hello, I have an app that uses Go's standard template package. The app reads an xml file and passes the info to a template (snippet shown below) including a slice of structs that the template can range over. eg {{- range $source:= $grant.SubSection "Funding Sources" }} Although the SubSection

[go-nuts] Re: [ANN] A golang source code query language

2018-03-24 Thread matthewjuran
Hi Forud, here’s a code review. Thanks for the MIT license. Seeing an empty struct type is a code smell to me, but I understand that this pattern may be required to be a database/sql driver. The unit tests seem good but I’d add an example or more in-depth overall test. In astdata/file.go perh

[go-nuts] Re: [ANN] A golang source code query language

2018-03-24 Thread Forud A
Thank you! Beside fun, I want to use this tool, for code generation based on current code. For example create function to handle CRUD on a structure in database (instead of ORM) or ...  I have several other packages for doing this, its somehow, my next generation of those packages. About find

[go-nuts] Re: About a channel detail, bug, defect, or intended?

2018-03-24 Thread T L
On Saturday, March 24, 2018 at 11:49:11 AM UTC-4, Jake Montgomery wrote: > > There may not be any guarantee that the channel will always be full, but > in practice your code always produces 100 results for me. Both in the > playground , and on my machine

[go-nuts] Re: About a channel detail, bug, defect, or intended?

2018-03-24 Thread jake6502
There may not be any guarantee that the channel will always be full, but in practice your code always produces 100 results for me. Both in the playground , and on my machine (go version go1.10 windows/amd64). With or without the Sleep commented out. Am I

Re: [go-nuts] About a channel detail, bug, defect, or intended?

2018-03-24 Thread T L
On Saturday, March 24, 2018 at 10:18:15 AM UTC-4, Alex Efros wrote: > > Hi! > > On Sat, Mar 24, 2018 at 03:41:19AM -0700, T L wrote: > > Shouldn't it be that the receive from the only buffer and fill next > queuing > > value to the only buffer in one atomic operation? > > AFAIR spec doesn't

Re: [go-nuts] About a channel detail, bug, defect, or intended?

2018-03-24 Thread Alex Efros
Hi! On Sat, Mar 24, 2018 at 03:41:19AM -0700, T L wrote: > Shouldn't it be that the receive from the only buffer and fill next queuing > value to the only buffer in one atomic operation? AFAIR spec doesn't provide such a guarantee, so this isn't a bug. If you need to know when last value from c

[go-nuts] Re: [ANN] A golang source code query language

2018-03-24 Thread Karan Chaudhary
Interesting idea, Forud. So I was reading net/http package, it has ResponseWriter which is an interface as opposed to http.Request (which is a concrete type). Then I wanted to know what all types implement http.REsponseWriter, which reminded of your post here. Is it possible to know this usi

Re: [go-nuts] [ANN] A golang source code query language

2018-03-24 Thread Wilhelmina Drengwitz
Hey Forud, That is a fascinating idea! I'm curious about what types of use cases you're thinking about using something like this for? Thanks! On Fri, Mar 23, 2018 at 6:11 AM, Forud A wrote: > Hello, > > GoQL is a hubby project of mine, > for extracting glo

[go-nuts] About a channel detail, bug, defect, or intended?

2018-03-24 Thread T L
In the following example, there are 99 goroutines queuing and blocking on sending a value to c. When the only buffered value is received, it looks there is a time interval until the buffer is filled. Shouldn't it be that the receive from the only buffer and fill next queuing value to the only bu

[go-nuts] Re: flutter' app crash met with gomobile package .aar

2018-03-24 Thread Ged Wed
do you have a git repo we can look at. I have done this before with flutter and golang. On Wednesday, 21 March 2018 13:37:11 UTC+1, jlp hu wrote: > > flutter' app crash met with gomobile package .aar > >1. > >I follow the guidence https://flutter.io/platform-channels/ ... It >w