From ae65b377621dc6f37beeff36393a959126a5c927 Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Sun, 8 Jan 2023 16:08:31 +0000 Subject: [PATCH] add comment about where src/os/file.go came from Signed-off-by: Achille Roussel --- src/os/file.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/os/file.go b/src/os/file.go index 05e742b6..359d82b1 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -2,6 +2,14 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// This file was originally copied from Go, see: +// https://github.com/golang/go/blob/master/src/os/file.go +// +// Some of the code inherited from Go is not used anymore in Tinygo, but we keep +// changes to a minimum to help simplify bringing changes (e.g. the lstat global +// is not used here anymore, but we might need it if we add tests from Go in +// this package). + // Package os implements a subset of the Go "os" package. See // https://godoc.org/os for details. //