/
githubmirror
/
gin
Обзор
Документация
Войти
/
githubmirror
/
gin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
internal/fs/fs.go
21 строка
362 B
Flc゛
ci(golangci-lint): update configuration and fix lint issues (#4247)
23 май 2025, 09:46
Не верифицирован
23 май 2025, 09:46
c4287b1
Код
Авторство
О чём код?
package fs import ( "io/fs" "net/http" ) // FileSystem implements an [fs.FS]. type FileSystem struct { http.FileSystem } // Open passes `Open` to the upstream implementation and return an [fs.File]. func (o FileSystem) Open(name string) (fs.File, error) { f, err := o.FileSystem.Open(name) if err != nil { return nil, err } return fs.File(f), nil }