code: func pkgPrefix(funcName string) string {
  	const pathSep = "/"
  	end := strings.LastIndex(funcName, pathSep)
  	if end == -1 {
  		return ""
  	}
  	return funcName[:end]
  }
docs: // pkgPrefix returns the import path of the function's package with the final
  // segment removed.