Jul 8, 2012

Set up an import path alias

Today I set up an alias for the import path of my Tideland packages. How to do so is described in the documentation of the go command. So I registered cgl.tideland.biz and added the needed index and other files per package. They don't contain very much, only the meta tag

<meta name="go-import" content="cgl.tideland.biz hg https://code.google.com/p/tcgl"/>

This way go get know that the real repository is hosted at Google Code. Beside the nice looking import path I can change the repository hoster if this is needed once.

Now I only have to change the import paths inside the code and push it.