This library implements iterm2's Inline Images Protocol. As long as your program runs in iterm2, it will be able to either download or inline images in your user's terminal.
go get github.com/francescomari/iterm2
Read the documentation to learn how to use this library.
This library is licensed under MIT.