func FindVersion(gomod []byte, module string) (string, error)
FindVersion returns the version for a module given the contents of a go.mod file.
func MustFindVersion(gomod []byte, module string) string
MustFindVersion returns the version for a module given the contents of a go.mod file or panics.