On Tue, May 7, 2019 at 8:39 PM Tong Sun <[email protected]> wrote:
> Thanks Kurtis, I'll for sure using it for some serious. > > For now, I need the program as minimalist as possible, because I'm trying > to rewrite this small Perl code as Go, > https://github.com/suntong/dbab/blob/master/src/bin/dbab-svr#L94 > whose only purpose is to severve an 1x1 pixel. > Then why are you writing a HTTPS server that uses a TLS cert from LetsEncrypt? The code you linked to is a simple HTTP server. Assuming the answer is you need (or want to use) HTTPS my answer is still the same: Use Caddy. It's very small and trivial to install and setup. It is also extremely efficient at serving static content (I use it with Hugo to serve static blog content). Again, don't reinvent the wheel. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD9oQb%2BL4WhHthoTy9_nS-wVk%2B4EVObV%2Bjc%3DEF%2BPSD8qbQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
