News for hackers. Stuff that matters.
Re:Show HN: Plain Text Cryptocurrency Prices by olalonde on Tuesday June 14, 2022 @10:25AM (#31739992)
Pretty cool, I noticed it works both in the browser and command line. I suppose you are using the User-Agent header to detect which version to serve? Which library did you use for the interface?
Re:Show HN: Plain Text Cryptocurrency Prices by guillaumec on Tuesday June 14, 2022 @10:39AM (#31740199)
It's all done by hand in go. Yes it uses the user agent to guess if the request comes from a terminal.