You can use https://code.google.com/p/go-wiki/wiki/Iota to make it much more easier to define the powers