Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
olalonde
· 4y ago · 0 comments
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?
Comments
[–]
guillaumec
4y ago
It's all done by hand in go. Yes it uses the user agent to guess if the request comes from a terminal.