Matthew Taylor

Results 19 comments of Matthew Taylor

I would like to see this too, but I'm not sure how it could be done in this repo because of the way go templ works. There needs to be...

Thanks. I didn't know about `adaptor.HTTPHandler`. I like your solution. How would you handle this? ```go templ Greeting(name string) { {name} } func main() { app := fiber.New() app.Get("/greeting/:name", render(t.Greeting("the...

> I would happily take a PR for a Fiber example, once we have consensus on best performance and nicest code. 😁 I like @bastianwegge 's solution, and I nominate...

> With a bit more code it would also allow setting custom status codes, etc I'm curious about this. Do you have anything to show? I went down this path...

I did some benchmarks and the overhead of calling the adaptor is not completely insignificant, imo: ```sh $> wrk -t100 -c400 -d30s http://localhost:3000/with Running 30s test @ http://localhost:3000/with 100 threads...

To workaround, I added a new command to my config that runs the linter with the options I want: ```lua vim.cmd( [[command! GoLintEx :setl makeprg=golangci-lint\ run\ --print-issued-lines=false\ --exclude-use-default=true\ --out-format=line-number |...

I have the same issue as gcollura. I launch neovim, run `:GoLint` and the quickfix appears. The first time I hit enter on an item in quickfix, I get this...

``` Press q or to close this window. Press to view server doc. Language client log: /home/matt/.local/state/nvim/lsp.log Detected filetype: go 2 client(s) attached to this buffer: Client: copilot (id: 1,...

1 was the makefile, and 51 was the quickfix buffer. Here it is again. I opened neovim fresh, and ran `:grep "func main\("` which loads a quickfix list without opening...