coredns/plugin/file/tree
Ben Kochie 3f6dfbd2a7
Fix temp file close error ()
Avoid Go 1.20 test error by not attempting to close the testing temp
file unless there was an error in Read().
* Use a CreateTemp() to create unique test files.
* Defer the deletion of the temp file.

Woarkaround for: https://github.com/golang/go/issues/59938

Signed-off-by: SuperQ <superq@gmail.com>
2023-05-03 13:53:48 -04:00
..
all.go plugin/file: Rename do to walk and cleanup and document () 2019-07-18 17:44:47 +00:00
auth_walk.go plugin/sign: fix signing of authoritative data () 2019-12-06 19:54:31 +00:00
elem.go plugin/file: Rename do to walk and cleanup and document () 2019-07-18 17:44:47 +00:00
glue.go plugin/file: simplify locking () 2019-07-23 18:32:44 +00:00
less.go Replacing 'HTTP' by 'HTTPS' for securing links () 2019-02-21 07:21:25 +00:00
less_test.go add golangci-lint linter () 2022-07-10 11:06:33 -07:00
print.go plugin/file: Fix print tree error () 2021-11-19 16:18:31 +00:00
print_test.go Fix temp file close error () 2023-05-03 13:53:48 -04:00
tree.go cleanup: remove redundant return statement () 2019-09-23 14:40:14 +01:00
walk.go plugin/sign: fix signing of authoritative data () 2019-12-06 19:54:31 +00:00