github.com/hairyhenderson/gomplate/v3@v3.11.7/template_unix.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package gomplate
     5  
     6  import (
     7  	"os"
     8  
     9  	"golang.org/x/sys/unix"
    10  )
    11  
    12  func isDirError(name string) *os.PathError {
    13  	return &os.PathError{
    14  		Op:   "open",
    15  		Path: name,
    16  		Err:  unix.EISDIR,
    17  	}
    18  }