October 7, 2014
No worries: Everything we’ve changed is completely backwards compatible!
If you visited our online package API documentation in the past, you would have noticed that we generate and host all of it ourselves.
If you did, you might have also noticed how completely sub-par it was in many different ways to GoDoc documentation. It lacked things like the ability to follow types by clicking them, keyboard shortcuts, etc.
In the past there were circumstances that caused us to be unable to utilize godoc.org fully, but we’ve long since relieved those circumstances. And today we’ve completely removed our sub-par API documentation and directly replaced it with godoc.org!
Going forward this will give us better package documentation and allow us to focus more time on appropriate things. Maybe we can even contribute to
gddo directly and provide benefits for all Gophers!
After making some bad statements and publishing a, both invalid and needless, survey -- we learned of something very important: Semantic Versioning.
Take note, buckle up, and do whatever you have to do to convince yourself to just read the specification. It really will tell you all that you need to know about versioning, and it’s super short (in comparison to most standards).
Funny enough, what we were doing previously was actually written in the specification:
This is not a new or revolutionary idea. In fact, you probably do something close to this already. The problem is that “close” isn’t good enough.
And -- well -- they are right.
So what changed?
pkg.dev(SemVer section 9).
v1releases yet are imported under
v0(SemVer section 4).
The versioning page has more information.
What is it?
We are using it because our top priority is backwards compatability with existing code, and we’re certain azul3d.org isn’t going away any time soon.
You probably shouldn’t use it unless you need to though. gopkg.in is a great service as-is and it will always be online -- your personal website may not be.
semver.v1 package is well-documented and has plenty of tests, going forward it will work very well for us and perhaps a few others -- just give us a shout, we’d love to hear from you as always.
By switching to GoDoc we get better API documentation for all of our Go packages. By following semantic versioning more to-the-dot in our future work we will be better off than ever before, and the new
azul3d.org/semver.v1 package will help us with this.
We want to point focus towards developing clean Go packages with well-defined backwards compatability guarantees, so that upgrading is easier and old applications still build.
Take note that the new
semver.v1 package is not related to game development, so we chose not to write an article purely for it’s announcement.