Preslav Rachev | Adding Version Information to Go Binaries

 收集于3个月前 阅读数 8
原文链接: https://preslav.me/2019/07/09/adding-version-information-to-go-binaries/
One of the things that I find really neat about Go, is the single-executable delivery model. For small projects, it’s as simple as dragging and dropping the built executable right where I need it. After some time, however, I might easily forget which version of my codebase a given executable has been built upon. If I have to revert a change, how can I make sure that I build from the right commit?