From 01462b4515112c30bb799808a34e8f434a7681e1 Mon Sep 17 00:00:00 2001 From: mojatter Date: Tue, 7 Apr 2026 18:16:17 +0900 Subject: [PATCH] chore(osfs): announce NewOSFS removal in v0.6.0 NewOSFS has been Deprecated in favor of New for a while but the godoc gave callers no removal timeline. State explicitly that it will be removed in v0.6.0 so downstream consumers can plan the migration. --- osfs/osfs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osfs/osfs.go b/osfs/osfs.go index 0021679..ff45adb 100644 --- a/osfs/osfs.go +++ b/osfs/osfs.go @@ -59,7 +59,9 @@ var ( ) // NewOSFS returns a filesystem for the tree of files rooted at the directory dir. -// Deprecated: Use New. +// +// Deprecated: Use New. NewOSFS is retained for backwards compatibility and +// is scheduled for removal in v0.6.0. func NewOSFS(dir string) *OSFS { return New(dir) }