[go-nuts] Re: godoc question

2016-08-08 Thread Dave Cheney
Looks like a bug in godoc.org (and maybe godoc). This is not a 1.7 blocker, in code the constant is untyped. On Tuesday, 9 August 2016 16:41:19 UTC+10, ksug wrote: > > Hi all, > > Package github.com/hashicorp/raft contains the following block of code: > > > = > const ( > rpcAppend

[go-nuts] godoc question

2016-08-08 Thread Kiki Sugiaman
Hi all, Package github.com/hashicorp/raft contains the following block of code: = const ( rpcAppendEntries uint8 = iota rpcRequestVote rpcInstallSnapshot // DefaultTimeoutScale is the default TimeoutScale in a NetworkTransport. DefaultTimeoutScale =

Re: [go-nuts] golang1.7rc6 is not as stable as golang1.6 on ios9.0 and arm64

2016-08-08 Thread Ian Lance Taylor
On Mon, Aug 8, 2016 at 7:05 PM, bronze man wrote: > My program works correct with golang1.6 on ios9.0 and arm64. > > But it crash as following: > > ``` > > * thread #8: tid = 0x63fe9, 0x000100319a64 FastLemon Accelerator`notok + > 4, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) > > * f

[go-nuts] Re: go process memory limits and gurantees

2016-08-08 Thread bronze man
I do not find this kind of api in golang. If you found one,please tell me. The best you can do is that calling debug.SetGCPercent(10) to tell golang gc quicker, calling debug.FreeOsMemory() every second to free os memory faster and trying to reduce memory alloc number and size. On Sunday, Augu

Re: [go-nuts] go process memory limits and gurantees

2016-08-08 Thread Aram Hăvărneanu
On Sun, Aug 7, 2016 at 4:37 AM, gaurav wrote: > Please let me know if there is something I have missed to read regarding > this or if there is already a way to achieve this? There is not. -- Aram Hăvărneanu -- You received this message because you are subscribed to the Google Groups "golang

[go-nuts] go process memory limits and gurantees

2016-08-08 Thread gaurav
Bumping the thread up one last time.. -- 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 https://gr

[go-nuts] golang1.7rc6 is not as stable as golang1.6 on ios9.0 and arm64

2016-08-08 Thread bronze man
My program works correct with golang1.6 on ios9.0 and arm64. But it crash as following: ``` * thread #8: tid = 0x63fe9, 0x000100319a64 FastLemon Accelerator`notok + 4, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x000100319a64 FastLemon Accelerator`notok + 4

Re: [go-nuts] Re: Server TCP

2016-08-08 Thread Nathan Kitchen
It's probably already clear from Freddy's response, but...try substituting "packet" for "package". Both words can be translated into Spanish as "paquete", so a native Spanish speaker might easily swap them. -- Nathan On Thu, Aug 4, 2016 at 3:18 PM, wrote: > The login package is a message that t

Re: [go-nuts] Re: [ANN] Pixiecore, simple all-in-one netbooting

2016-08-08 Thread David Anderson
On Mon, Aug 8, 2016 at 3:15 PM, Jim Dennis wrote: > > David, > > Thanks for the fast response. I have, since writing that, confirmed that > I > can boot at least one of these systems (Lenovo ThinkPad T410) using > pixiecore (running on my Mac laptop) when both systems are connected > to my

Re: [go-nuts] Re: [ANN] Pixiecore, simple all-in-one netbooting

2016-08-08 Thread Jim Dennis
David, Thanks for the fast response. I have, since writing that, confirmed that I can boot at least one of these systems (Lenovo ThinkPad T410) using pixiecore (running on my Mac laptop) when both systems are connected to my home router (which, of course, provides DHCP). So that works. I'

[go-nuts] Go 1.7 Release Candidate 6 is released

2016-08-08 Thread Chris Broadfoot
Hello gophers, We have just released go1.7rc6, a release candidate for Go 1.7. Some say that it's the best one yet. It is cut from release-branch.go1.7 at the revision tagged go1.7rc6. Please help us by testing your Go programs with the release, and report any problems using the issue tracker:

[go-nuts] Re: How to create reusable HTML components using default html/template package

2016-08-08 Thread Paulo Janeiro
I'm using html/template already. I'm able to parse my templates dynamically but my approach doesn't seems to be the best to handle dozens of different templates that can be used inside N different combinations, especially because I want to cache them and not to have to parse those combination ev

Re: [go-nuts] Re: [ANN] Pixiecore, simple all-in-one netbooting

2016-08-08 Thread David Anderson
On Sun, Aug 7, 2016 at 5:11 PM, wrote: > > David, > > I'm confused by one part of this ... > > On Monday, September 14, 2015 at 8:18:23 PM UTC-7, David Anderson wrote: > > ... > > Of note is that Pixiecore does *not* require replacing or changing your >> existing DHCP server. Instead, Pixiecor

[go-nuts] Re: How to create reusable HTML components using default html/template package

2016-08-08 Thread paraiso . marc
Use the html/template package . It's a good idea to go through the documentation of the standard lib once and to see what packages it provides. In fact, with Go the knowledge of the std lib is as important knowing any other features of the language. Le dimanche 7 août 2016 23:51:05 UTC+2, Pau

Re: [go-nuts] Why is reflect.ValueOf(nil map).Interface() != nil?

2016-08-08 Thread Steven Blenkinsop
Perhaps for clarity, the trip through reflect is a red herring. All you need is to put the map in an interface: package main > > import ( > "fmt" > ) > > func main() { > var m map[string]interface{} > if m != nil { > panic("m != nil") > } > var i interface{} = m > if i == nil { > // I expect this.

[go-nuts] Re: Go package management proposal process

2016-08-08 Thread Peter Bourgon
Thank you to the 40+ Gophers who have already signaled interest. We will be using Google Docs for future work and discussion, so if you've added your name, can you please send me an email address for future Google Docs invites? You can reply to this email privately, or contact me on Gophers Slack p

Re: [go-nuts] Why is reflect.ValueOf(nil map).Interface() != nil?

2016-08-08 Thread Ian Lance Taylor
On Mon, Aug 8, 2016 at 10:07 AM, Sam Salisbury wrote: > The code speaks for itself, I thought I was understanding reflection up > until this point... It seems that the zero value of maps is nil, until you > round-trip them to a reflect.Value, and they become non-nil. This is an instance of https:

Re: [go-nuts] IDE for GOLANG

2016-08-08 Thread Nyah Check
Hi everyone, Atom with go extensions works for me. Cheers! Nyah -- 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 mo

[go-nuts] Why is reflect.ValueOf(nil map).Interface() != nil?

2016-08-08 Thread Sam Salisbury
The code speaks for itself, I thought I was understanding reflection up until this point... It seems that the zero value of maps is nil, until you round-trip them to a reflect.Value, and they become non-nil. The code below behaves similarly for slices. package main import ( "fmt" "reflect" )

Re: [go-nuts] Re: How to create reusable HTML components using default html/template package

2016-08-08 Thread Marvin Renich
* Paulo Janeiro [160808 11:14]: > I understand what your point, but I'm just trying to see if this is > something easy to do by myself or if I should start looking into a framework > Nevertheless, I'm using Phoenixframework (Elixir). > Here we could define a layout that is made of componentes (pr

Re: [go-nuts] net/http and static binaries

2016-08-08 Thread Seb Binet
On Mon, Aug 8, 2016 at 5:12 PM, Ian Lance Taylor wrote: > On Sun, Aug 7, 2016 at 7:08 PM, Amit Saha wrote: > > > > From an old thread [1], I learned that CGO_ENABLED=0 will create static > > binaries for programs using the net/http package. I still see the same > > behavior as of go version go1.

[go-nuts] Re: How to create reusable HTML components using default html/template package

2016-08-08 Thread Paulo Janeiro
I understand what your point, but I'm just trying to see if this is something easy to do by myself or if I should start looking into a framework Nevertheless, I'm using Phoenixframework (Elixir). Here we could define a layout that is made of componentes (pre-built templates). Data is passed when

Re: [go-nuts] net/http and static binaries

2016-08-08 Thread Ian Lance Taylor
On Sun, Aug 7, 2016 at 7:08 PM, Amit Saha wrote: > > From an old thread [1], I learned that CGO_ENABLED=0 will create static > binaries for programs using the net/http package. I still see the same > behavior as of go version go1.6.3 linux/amd64. Does this mean this is the > only way to get static

[go-nuts] Re: IDE for GOLANG

2016-08-08 Thread luke
http://goclipse.github.io/ kritika...@indiamart.com於 2016年8月2日星期二 UTC+8下午8時25分21秒寫道: > > Hi, > is there IDE for creating a web service in GOLANG by using Revel framework > which follows MVC architecture. > > i am using Ubuntu .. > > > > *Watch our latest TV Commercial #IndiaKiKhoj >

[go-nuts] Re: [ANN] Pixiecore, simple all-in-one netbooting

2016-08-08 Thread jimd
David, I'm confused by one part of this ... On Monday, September 14, 2015 at 8:18:23 PM UTC-7, David Anderson wrote: ... Of note is that Pixiecore does *not* require replacing or changing your > existing DHCP server. Instead, Pixiecore uses a feature of the PXE spec > (very poorly named

[go-nuts] net/http and static binaries

2016-08-08 Thread Amit Saha
Hi all, >From an old thread [1], I learned that CGO_ENABLED=0 will create static binaries for programs using the net/http package. I still see the same behavior as of go version go1.6.3 linux/amd64. Does this mean this is the only way to get statically linked binaries for programs using net/htt

[go-nuts] Re: IDE for GOLANG

2016-08-08 Thread TargetLiu
LiteIDE or Visual Studio Code 在 2016年8月2日星期二 UTC+8下午8:25:21,kritika...@indiamart.com写道: > > Hi, > is there IDE for creating a web service in GOLANG by using Revel framework > which follows MVC architecture. > > i am using Ubuntu .. > > > > *Watch our latest TV Commercial #IndiaKiKhoj >

[go-nuts] Call for Participation - Communicating Process Architectures 2016

2016-08-08 Thread Kevin Chalmers
| | |Communicating Process Architectures (CPA) 2016| | | | The 38th. WoTUG Conf

[go-nuts] Re: Go 1.7 Release Candidate 5 is released

2016-08-08 Thread lobeun
rc5 includes three fixes: two to the `go doc` command, and one fix for time for macOS Sierra Beta 4. week's time 在 2016年8月3日星期三 UTC+8上午8:50:34,Chris Broadfoot写道: > > Hello gophers, > > We have just released go1.7rc5, a release candidate for Go 1.7. > It is cut from release-branch.go1.7 at the r

[go-nuts] Re: Shouldn't net/http Client.Do() return EOF when a connection is closed?

2016-08-08 Thread James Bardin
If you look at the type of the error returned, it's probably a *url.Error. In that case you case you can get the original error from the network read in the Err field. Something like: if err, ok := err.(*url.Error); ok { if err.Err == io.EOF { log.Fatal("received io.EOF during request") } }

Re: [go-nuts] Go API checker

2016-08-08 Thread John Kemp
Thanks Dave - I actually found a way to refactor my interface so that the API check passed. Cheers, - johnk > On Aug 5, 2016, at 5:41 PM, Dave Cheney wrote: > > Add your change to this file > > https://github.com/golang/go/blob/master/api/except.txt > > On Saturday, 6 August 2016 02:37:33 U

[go-nuts] Shouldn't net/http Client.Do() return EOF when a connection is closed?

2016-08-08 Thread Bruno Albuquerque
I am seeing a weird issue when using Client.Do() to do a request. Here is the scenario: go version go1.7rc5 linux/amd64 The server I am sending the request to, receives it and, for this specific request, closes the connection immediately without sending any replies. To detect this, I wanted to co

Re: [go-nuts] Is this an acceptable way to handle errors

2016-08-08 Thread GoNutter
Thanks Lance. On Saturday, August 6, 2016 at 4:43:02 PM UTC+1, Ian Lance Taylor wrote: > > On Sat, Aug 6, 2016 at 5:50 AM, GoNutter > wrote: > > > > I have a number of cases where I have to handle typed errors. I have > been > > doing this previoiusly > > > > err :=SomeFunctionCall() > > i