First stab of port of https://code.google.com/p/splitta/ into go