use bytes.HasPrefix

The bytes package already has a prefix function.