1,379 karma · joined January 7, 2019
Argh. I hate it when this happens. It's infuriating that this hasn't been fixed yet.
Stick with pass-by-value and non-pointer receivers. Use pointers only if you have to.
from autopilot import *That said, I hate this, all the ways it's opinionated and praised zealously for it as the best thing since sliced bread.
I fixed mine by gluing it with epoxy, and filled another part that was broken off with epoxy paste (it has a consistency like playdough).
sub.domain.com {
# transparent proxy + websocket support + letsencrypt TLS
reverse_proxy 127.0.0.1:2345
}
It's a fresh breath of air to have server with sensible defaults after dealing with apache and nginx (haproxy isn't much better in that regard).I found it most helpful in setting up boilerplate in when writing tests. It could offer testing some edge cases before I could think of them.
Unless you're using golang. There's no stack trace by default. It's left as an exercise to to programmer to wrap and add context to errors.
> It looks like this library removes the flexibility of that and instead provides a worse API to the user.
You can get to the stdlib http.ResponseWriter and http.Request with Response() and Request() methods
TIL. As a non-native speaker, I've never seen it written and always heard it like "pole bearer", which kinda makes sense: horizontal poles under a coffin.
There's gobyexample.com, but it contains usually basic stuff to get started with the language.
You can write Lua/Javascript and bind it to a hotkey and run your own scripts, pass in current video, playback position, download subtitles etc.
[0]: I use mpv.net on Windows, too, but PotPlayer has better UX.