code: func isExistingSocket(path string) bool {
  	fileInfo, err := os.Stat(path)
  	if err != nil {
  		return false
  	}
  
  	return fileInfo.Mode()&os.ModeSocket != 0
  }
docs: // isExistingSocket checks if path exists and is domain socket