/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
conf/embed.go
23 строки
485 B
ᴊᴏᴇ ᴄʜᴇɴ
chore: remove all MIT license file headers (#8083)
09 янв 2026, 03:32
Не верифицирован
09 янв 2026, 03:32
59e9fa1
Код
Авторство
О чём код?
package conf import ( "embed" ) //go:embed app.ini **/* var Files embed.FS // FileNames returns a list of filenames exists in the given direction within // Files. The list includes names of subdirectories. func FileNames(dir string) ([]string, error) { entries, err := Files.ReadDir(dir) if err != nil { return nil, err } fileNames := make([]string, 0, len(entries)) for _, entry := range entries { fileNames = append(fileNames, entry.Name()) } return fileNames, nil }