Re: [go-nuts] Interpretting the pprof memory profile

2019-06-01 Thread Patrik Iselind
The reason I think there are 0: 0 entries is because the profile is fresh but the memory is from the previous GC, which are most likely not the same point in time. Does this make sense? It seem strange to me that the GC would leave garbage around at random. I don't think it does. Den onsdag 23

Re: [go-nuts] Re: Marshaling to JSON and dynamically choosing fields

2019-06-01 Thread hieuht817
Have you solved this? On Monday, December 17, 2012 at 9:03:50 AM UTC+7, Boris wrote: > > On Sun, Dec 16, 2012 at 5:45 PM, Dustin Sallings > wrote: > >> Boris > writes: >> >> > I have JSON web API that accepts fields URL parameter, like this: >> > >> > GET /something/?fields=a,b,c >> > >> > This i

[go-nuts] Re: golang splitting string by space but considering quoted section as a single part

2019-06-01 Thread AJ ONeal
Based on the work of others here I created my own version that passes the tests I needed to pass: * strips outer quotes * keeps inner quotes * empty quotes produce empty string https://play.golang.org/p/NzYUsZ-pm2v const NullStr = rune(0) // ParseArgs will parse a string that contains quo

[go-nuts] modules: available GOPROXY instances or implementations?

2019-06-01 Thread t hepudds
Here is a partial list of Go modules proxy implementations or instances (sorted by url): https://docs.gomods.io(Athens) https://gocenter.io(JFrog) https://goproxy.cn https://goproxy.io https://proxy.golang.org (Go team) https://thumbai.app (THUMB

[go-nuts] Re: inverse of time.Duration?

2019-06-01 Thread 'simon place' via golang-nuts
just reading this, surprised no mention of this... d,_:=time.ParseDuration("5.671ms") Hz:=int(time.Second/d) -- 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 gola

[go-nuts] Any alternative to go-bindata that supports dynamic assets?

2019-06-01 Thread 'Ingo Oeser' via golang-nuts
https://tech.townsourced.com/post/embedding-static-files-in-go/ is a great article comparing multiple asset embedding solutions. You may come to different conclusion than the author depending on your own tradeoffs, but I found the comparison table very useful for making those decisions myself.