diff options
Diffstat (limited to 'template_windows.go')
| -rw-r--r-- | template_windows.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/template_windows.go b/template_windows.go new file mode 100644 index 00000000..4b14f9e2 --- /dev/null +++ b/template_windows.go @@ -0,0 +1,17 @@ +//+build windows + +package gomplate + +import ( + "os" + + "golang.org/x/sys/windows" +) + +func isDirError(name string) *os.PathError { + return &os.PathError{ + Op: "open", + Path: name, + Err: windows.ERROR_INVALID_HANDLE, + } +} |
