Alexey Michurin
Alexey Michurin
Wrap `vim.*.input` to `pcall` to avoid `E5108: Error executing lua Keyboard interrupt` error on `CTRL-C`
It's better to use [zero conditional](https://www.perfect-english-grammar.com/zero-conditional.html) here because it is strict law, the result is inevitable. Anyway, you can't use _will_ in _if_-clause.
`RequestCallbackFn` allows to manipulate with `ctx` and HTTP headers without any handler wrappers. Use case [example](https://github.com/michurin/playground-graphql-go/pull/1/files).
Minor code update: - Using `r.URL.Query().Get("...")` instead of `r.URL.Query()["..."]` where this is the case - Using modern `strings.Cut` instead of `strings.SplitN(..., 2)` - Bumping required go version up to 1.18...
In my humble opinion sorted variables are more readable. By the way, `envs = append(envs, os.Environ()...)` seems useless, `os.Environ()` does the trick for you (it calls [`syscall.Environ()`](https://cs.opensource.google/go/go/+/refs/tags/go1.21.5:src/syscall/env_unix.go;l=139))