code: func vendorlessImportPath(ipath string) string {
  	// Devendorize for use in import statement.
  	if i := strings.LastIndex(ipath, "/vendor/"); i >= 0 {
  		return ipath[i+len("/vendor/"):]
  	}
  	if strings.HasPrefix(ipath, "vendor/") {
  		return ipath[len("vendor/"):]
  	}
  	return ipath
  }
docs: // vendorlessImportPath returns the devendorized version of the provided import path.
  // e.g. "foo/bar/vendor/a/b" => "a/b"