code: func (c *Config) IPCEndpoint() string {
  	// Short circuit if IPC has not been enabled
  	if c.IPCPath == "" {
  		return ""
  	}
  	// On windows we can only use plain top-level pipes
  	if runtime.GOOS == "windows" {
  		if strings.HasPrefix(c.IPCPath, `\\.\pipe\`) {
  			return c.IPCPath
  		}
  		return `\\.\pipe\` + c.IPCPath
  	}
  	// Resolve names into the data directory full paths otherwise
  	if filepath.Base(c.IPCPath) == c.IPCPath {
  		if c.DataDir == "" {
  			return filepath.Join(os.TempDir(), c.IPCPath)
  		}
  		return filepath.Join(c.DataDir, c.IPCPath)
  	}
  	return c.IPCPath
  }
docs: // IPCEndpoint resolves an IPC endpoint based on a configured value, taking into
  // account the set data folders as well as the designated platform we're currently
  // running on.