github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/os/stat_other.go (about) 1 //go:build baremetal || (wasm && !wasip1) 2 3 // Copyright 2016 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package os 8 9 // Stat is a stub, not yet implemented 10 func (f *File) Stat() (FileInfo, error) { 11 return nil, ErrNotImplemented 12 } 13 14 // statNolog stats a file with no test logging. 15 func statNolog(name string) (FileInfo, error) { 16 return nil, &PathError{Op: "stat", Path: name, Err: ErrNotImplemented} 17 } 18 19 // lstatNolog lstats a file with no test logging. 20 func lstatNolog(name string) (FileInfo, error) { 21 return nil, &PathError{Op: "lstat", Path: name, Err: ErrNotImplemented} 22 }