code: func FindCWD() (string, error) {
  	serverFile, err := filepath.Abs(os.Args[0])
  
  	if err != nil {
  		return "", fmt.Errorf("can't get absolute path for executable: %v", err)
  	}
  
  	path := filepath.Dir(serverFile)
  	realFile, err := filepath.EvalSymlinks(serverFile)
  
  	if err != nil {
  		if _, err = os.Stat(serverFile + ".exe"); err == nil {
  			realFile = filepath.Clean(serverFile + ".exe")
  		}
  	}
  
  	if err == nil && realFile != serverFile {
  		path = filepath.Dir(realFile)
  	}
  
  	return path, nil
  }
docs: // FindCWD returns the current working directory from where the Hugo
  // executable is run.