/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kbfs/libgit/submodule_file_info.go
44 строки
754 B
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Copyright 2019 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libgit import ( "os" "time" ) type submoduleFileInfo struct { name string size int64 mtime time.Time sf *submoduleFile } var _ os.FileInfo = (*submoduleFileInfo)(nil) func (sfi *submoduleFileInfo) Name() string { return sfi.name } func (sfi *submoduleFileInfo) Size() int64 { return sfi.size } func (sfi *submoduleFileInfo) Mode() os.FileMode { // Make it read-only. return 0o600 } func (sfi *submoduleFileInfo) ModTime() time.Time { return sfi.mtime } func (sfi *submoduleFileInfo) IsDir() bool { return false } func (sfi *submoduleFileInfo) Sys() any { return nil }