diff --git a/goextVersion.go b/goextVersion.go index cadbd1b..52f75c9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.507" +const GoextVersion = "0.0.508" -const GoextVersionTimestamp = "2024-08-25T15:41:17+0200" +const GoextVersionTimestamp = "2024-08-25T17:36:20+0200" diff --git a/langext/io.go b/langext/io.go new file mode 100644 index 0000000..0c3414f --- /dev/null +++ b/langext/io.go @@ -0,0 +1,15 @@ +package langext + +import "io" + +type nopCloser struct { + io.Writer +} + +func (n nopCloser) Close() error { + return nil // no op +} + +func WriteNopCloser(w io.Writer) io.WriteCloser { + return nopCloser{w} +}