golang implementation of libtextcat