String-matching in Golang using the Knuth–Morris–Pratt algorithm (KMP)