a golang implementation of XLattice