Finite-state language model in Go