lib9p

Go 9P library.
Log | Files | Refs

commit 15ba8017d53f53facd5a1f8917cbc721c06c22b6
parent 9c86b64cc6c1b32703be23a8a72e739bff2d43f1
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu, 31 Aug 2023 08:03:06 +0900

delete unnecessary comments

Diffstat:
Mfile.go | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/file.go b/file.go @@ -36,8 +36,8 @@ type Stat struct { } func (s *Stat) size() uint16 { + // type + dev + qid + mode + atime + mtime + length return uint16(2 + 4 + 13 + 4 + 4 + 4 + 8 + - // type + dev + qid + mode + atime + mtime + length 2 + len(s.Name) + 2 + len(s.Uid) + 2 + len(s.Gid) + @@ -106,19 +106,10 @@ func (s *Stat) String() string { s.Atime, s.Mtime, s.Length, s.Type, s.Dev) } -/* -fs.FileInfo -*/ type FileInfo struct { Stat *Stat } -/* -func fiFromStat(s *Stat) FileInfo { - -} -*/ - func (fi *FileInfo) Name() string { return fi.Stat.Name } func (fi *FileInfo) Size() int64 { return fi.Stat.Length } func (fi *FileInfo) Mode() fs.FileMode { return Mode9ToFSMode(fi.Stat.Mode) }