[go-nuts] Looking for New Maintainers: The Gorilla Toolkit

2021-12-12 Thread Matt Silverlock
The Gorilla Toolkit is looking for a new maintainer (or maintainers, plural). As the last standing maintainer of the project, I no longer have time to fully dedicate to maintaining the libraries here, and The major libraries - *mux *(https://github.com/gorilla/mux), *schema *(https://github.co

[go-nuts] gorilla/websocket - Looking for a New Maintainer

2019-06-29 Thread Matt Silverlock
I think I've posted about this before (or Gary has!), but we're looking for a new maintainer to take over the gorilla/websocket project. We've tried for a while (over a year) to find a new maintainer and haven't had any real bites. Some context: - It'

[go-nuts] Should you check error from ResponseWriter.Write()?

2017-10-22 Thread Matt Silverlock
For context, you might log this as a specific error, if you find you need to. It would not be unlike nginx’s HTTP 499, which is logged when the client prematurely closes the connection. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

[go-nuts] is there a way to mirror a standard package while adding some functions to it?

2017-01-27 Thread Matt Silverlock
No, but without more context, do your changes require you to modify the package? Why not use wrap it? -- 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

[go-nuts] Call for Feedback: Scoping gorilla/sessions v2

2017-01-27 Thread Matt Silverlock
gorilla/sessions has been around for a while, and with request.Context() back in Go 1.7, there's an unavoidable need to make breaking changes to the library. While we're at it, breaking a bunch more (and simplifying others!) in the process makes a whole lot of sense. We've also been ultra-carefu

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

2016-08-11 Thread Matt Silverlock
Have you looked at template blocks? https://golang.org/pkg/html/template/#example_Template_block My approach is to create a map[string]*template.Template that contains each template (base + layout + blocks for that template), with the map key set to the layout name. On Monday, August 8, 2016

[go-nuts] Re: html/template function not defined

2016-08-01 Thread Matt Silverlock
Where is the code for parsing your templates and apply the FuncMap? On Saturday, July 30, 2016 at 7:05:39 AM UTC-7, alex.b...@leadinglocally.com wrote: > > > Since, I have made 2 more float-to-int functions and they work fine. > > To solve this I'm having to pre-marshal my json before I execute t

[go-nuts] Re: Why can't I access port 6060 (pprof) in remote host

2016-07-23 Thread Matt Silverlock
Also: don't worry about hiding your IP address. 192.168.* is private address space and another Gopher can't connect to that remotely. On Thursday, July 21, 2016 at 8:44:55 AM UTC-7, Yongxiu Wu wrote: > > I am using net/http/pprof to monitor my program. > I import the package _"net/http/pprof" ,a

[go-nuts] Re: Is there a standard lib function which will return the count of characters in a string?

2016-07-23 Thread Matt Silverlock
https://blog.golang.org/strings utf8.RuneCountInString is about as close as you will get. Do you have an example string that is not meeting expectations? On Saturday, July 23, 2016 at 7:52:29 AM UTC-7, T L wrote: > > len(str) will get the count of bytes. > > utf8.RuneCountInString(str) will get

[go-nuts] What dependency management tool do you use?

2016-07-12 Thread Matt Silverlock
gvt - simple but robust: https://github.com/FiloSottile/gvt -- 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 opt

[go-nuts] Re: New Context method in http.Request, what can we do with it?

2016-07-12 Thread Matt Silverlock
; > Don't you think it would be better to use context to hold session values > rather than using global variables like github.com/gorilla/sessions does > ? > > Le lundi 11 juillet 2016 00:43:05 UTC+2, Matt Silverlock a écrit : >> >> Use it to pass connection/request-

[go-nuts] Re: Redis / Gin Framework Performance Issue

2016-07-11 Thread Matt Silverlock
$ wrk -t10 -c500 http://server:8001/testkey > Running 10s test @ http://server:8001/testkey > 10 threads and 500 connections > Thread Stats Avg Stdev Max +/- Stdev > Latency19.51ms 18.30ms 316.32ms 66.97% > Req/Sec 2.86k 349.38 3.88k78

[go-nuts] Re: New Context method in http.Request, what can we do with it?

2016-07-10 Thread Matt Silverlock
Use it to pass connection/request-scoped values: that is, values that could only exist once you have a request. authentication tokens, user details, connection IDs: things that can't be known/generated before the connection has been received. e.g. gorilla/mux (https://github.com/gorilla/mux) us

[go-nuts] Re: Redis / Gin Framework Performance Issue

2016-07-10 Thread Matt Silverlock
- Are your wrk threads starving your Go program? (why 10 threads? Why not 4 for wrk, 4 for Go?) - How are you connecting to Redis? (TCP? Unix socket?) - What size pool have you set for Redis? - Show us your code. This is likely a classic example of where framework 'benchmarks'