[go-nuts] Re: godoc memory leak

2019-06-17 Thread Agniva De Sarker
Couple of questions: 1. What version of godoc and Go are you using ? What is your go env ? 2. You are using -index but not passing an index file. Any reason for that ? godoc will load faster if you write an index beforehand and pass that. 3. I am guessing since you have set index_interval, you

[go-nuts] godoc memory leak

2019-06-17 Thread christopher.dang via golang-nuts
Hi all, I've been playing around with an internal godoc server and noticed that over long periods of time the memory growth is unbounded. The command I use to invoke godoc is *godoc -index=true -index_interval=15m -index_throttle=.30 -maxresults=0*. The following images below track the memo

Re: [go-nuts] Go GTK vs QT for Linux

2019-06-17 Thread Tyler Compton
I haven't personally used this library, but I'd think you'd only need libgtk-3-dev and libappindicator3-dev at compile-time. You should be able to get away with the smaller runtime packages libgtk-3-dev and libappindicator3-1 once your application is built. On Mon, Jun 17, 2019 at 6:56 AM Subraman

Re: [go-nuts] Bugs on switch

2019-06-17 Thread Tyler Compton
Andrew is right, but I'll also add that if you really do want fallthrough semantics, you can use the "fallthrough" keyword: https://play.golang.com/p/x2gBb905Hj0 Go opts to make the somewhat uncommon case of fallthrough explicit, and the more common "break" case implicit. A bit surprising for new

Re: [go-nuts] Scheduling - find the overlap size of two sequential date ranges and determine the actual dates of included in the intersection

2019-06-17 Thread Jan Mercl
On Sun, Jun 16, 2019 at 6:48 PM John More wrote: > I have created a program to solve this problem > (https://play.golang.org/p/BueQBahUUbk) but I am not a pro and do not know if > there is a better way. Possibly useful: https://godoc.org/modernc.org/interval#example-Time -- You received this

[go-nuts] Re: Scheduling - find the overlap size of two sequential date ranges and determine the actual dates of included in the intersection

2019-06-17 Thread jake6502
On Sunday, June 16, 2019 at 12:52:54 PM UTC-4, John More wrote: > > Updated playground code > https://play.golang.org/p/qHufIG5ppww > > On Sunday, June 16, 2019 at 12:48:25 PM UTC-4, John More wrote: >> >> I have created a program to solve this problem ( >> https://play.golang.org/p/BueQBahUUbk) bu

Re: [go-nuts] Pointer Method Receiver

2019-06-17 Thread jake6502
On Sunday, June 16, 2019 at 5:29:49 PM UTC-4, andrey mirtchovski wrote: > > Hi Ali, > > I understand your desire to provide useful information about Go in > blog posts. This is commendable. However let's try to keep this list > for technical issues and keep empty posts containing just a link t

Re: [go-nuts] Bugs on switch

2019-06-17 Thread Andrew Klager
I'm going to guess, based on the "break" statement in the final case, that you expect each of the case statements without a break to fall through to the nest case. Go does not work like that. By default, each case, whether there's any action taken or not, breaks. Take a look at this to accomplish w

Re: [go-nuts] Problems with Text Template

2019-06-17 Thread Yamil Bracho
Yes, Kurtis you are absolutely right!!! I just typed in "template.ParseFiles" and my editor made the changes for me in the imports and it imported "html/template" and i di not check this... Thanks!!! El viernes, 14 de junio de 2019, 22:20:11 (UTC-5), Kurtis Rader escribió: > > It is very unlik

[go-nuts] Bugs on switch

2019-06-17 Thread luthfigearintellix
i write example code standard switch statement https://play.golang.org/p/kOplHDBk8Df program exited without print something. -- 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 a

[go-nuts] Go GTK vs QT for Linux

2019-06-17 Thread Subramanian Sridharan
Hi guys I've been fiddling around this package which uses GTK bindings in Go to achieve systray functionality. But it depends on *libgtk-3-dev *and* libappindicator3-dev *which amount to around 300 MB. Have you guys come across any other package that impl