[go-nuts] Re: How to reduce the fluctuation of micro benchmark results

2020-01-08 Thread Xiangdong JI
Thanks for the replying, tried -benchtime=Nx and the results appeared a little stable now. On Wednesday, January 8, 2020 at 10:19:25 AM UTC+8, Xiangdong JI wrote: > > Hi, > > Significant fluctuation is observed when running micro benchmarks, even > with the same version of go, e.g the following

[go-nuts] Description of what "Total:" means in pprof output

2020-01-08 Thread ianvernon92
When running `go tool pprof` against a pprof file, when I want to introspect the memory consumption of a given function via `list`, sometimes I get nothing: This occurs when pprof got no meaningful data from the samples it took from when the profile was gathered, from my understanding. What is

[go-nuts] Re: About the change for default "-mod=vendor" in Go 1.14

2020-01-08 Thread Sean Liao
works for me when tested with gp1.14beta1, are you sure your go.mod has the "go 1.14" directive? go's tooling currently assumes vendor is a full local copy of all code needed to build a module with modules the recommended way is to have your patched / unavailable module somewhere else and poin

Re: [go-nuts] How do I initialize extemplate (a template engine in golang) so that I can use with Echo minimalist framework

2020-01-08 Thread Chris Burkert
xt := &Template{} leaves the templates field nil. Ehioje Henry Erabor schrieb am Mi. 8. Jan. 2020 um 15:59: > I am having issues using extemplate library in my echo framework project. > Library :https://github.com/dannyvankooten/extemplate > > My Code is below: > > Enter code here...package main

[go-nuts] How do I initialize extemplate (a template engine in golang) so that I can use with Echo minimalist framework

2020-01-08 Thread Ehioje Henry Erabor
I am having issues using extemplate library in my echo framework project. Library :https://github.com/dannyvankooten/extemplate My Code is below: Enter code here...package main import ( "fmt" "io" "net/http" "github.com/dannyvankooten/extemplate" "github.com/labstack/echo/v4" ) // Template ..

[go-nuts] About the change for default "-mod=vendor" in Go 1.14

2020-01-08 Thread T L
The release notes (https://tip.golang.org/doc/go1.14) says When the main module contains a top-level vendor directory and its go.mod file specifies go 1.14 or higher, the go command now defaults to -mod=vendor for operations that accept that flag. A new value for that flag, -mod=mod, causes th

Re: [go-nuts] How to reduce the fluctuation of micro benchmark results

2020-01-08 Thread roger peppe
I'd recommend watching this talk from Daniel Marti, which explores exactly this issue and might be relevant to you: https://www.youtube.com/watch?v=oE_vm7KeV_E On Wed, 8 Jan 2020 at 02:19, Xiangdong JI wrote: > Hi, > > Significant fluctuation is observed when running micro benchmarks, even > wit

[go-nuts] Re: how to get the full path of current process' executable file

2020-01-08 Thread Tamás Gulácsi
2020. január 8., szerda 6:37:57 UTC+1 időpontban Eric Chai a következőt írta: > > Moved to https://github.com/kardianos/osext > > On Thursday, March 13, 2014 at 3:54:29 PM UTC+8, Dobrosław Żybort wrote: >> >> Too bad you did not search on stackoverflow: >> http://stackoverflow.com/a/15038241/17225