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

2016-08-07 Thread Simon Ritchie
> Specifically, is there a recommended pattern on how to use a component inside another component inside another component passing data to each one in a transparent way? That's not awfully specific. I'm guessing that you are thinking of a particular framework that you have used with another la

[go-nuts] Re: Will put the compile function into the go function reduce the compile time?

2016-08-07 Thread Dave Cheney
The time to fork the compiler process is not the significant time to compile a package. On Monday, 8 August 2016 13:17:23 UTC+10, bronze man wrote: > > I just found that the "go install" command use cmd.Run to > run "/usr/local/go/pkg/tool/darwin_amd64/compile" in the > release-branch.go1.7. >

[go-nuts] Will put the compile function into the go function reduce the compile time?

2016-08-07 Thread bronze man
I just found that the "go install" command use cmd.Run to run "/usr/local/go/pkg/tool/darwin_amd64/compile" in the release-branch.go1.7. I think put the code in "/usr/local/go/pkg/tool/darwin_amd64/compile" command to a golang function of a nonmain package,and the "go install" cmd call that go

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

2016-08-07 Thread pj . betamillions
Coming from another language, I'm starting to port a web app to Go using default packages to test-drive it but I couldn't find any standard/recommended way of using pre-defined HTML components that I could use in HTML pages and inside other components. Specifically, is there a recommended patte

[go-nuts] problem with -import in gomock

2016-08-07 Thread Simon Ritchie
I'm having a problem with the -import mechanism in mockgen. I opened an issue on the gomock github page five days ago, but nobody has responded. I'm using gomock to generate static mocks. One of my generated mocks is throwing a syntax error. To fix this, I'm trying to set the name of a pa

[go-nuts] go process memory limits and gurantees

2016-08-07 Thread gaurav
Hi everyone, I am a bit unclear about how to specify memory limits for Go processes and what can be assumed about the Garbage collection behavior when approaching such a memory limit. Specifically, I would want to be able to 'tell' a Go process to not use more than X GB of RAM and then expect