/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/form/folder.go
28 строк
887 B
Michael Mayer
Go: Apply go fix modernizations across backend packages
20 фев 2026, 05:54
20 фев 2026, 05:54
a2b7615
Код
Авторство
О чём код?
package form import "github.com/ulule/deepcopier" // Folder represents a file system directory edit form. type Folder struct { Path string `json:"Path"` Root string `json:"Root"` FolderType string `json:"Type"` FolderTitle string `json:"Title"` FolderCategory string `json:"Category"` FolderDescription string `json:"Description"` FolderOrder string `json:"Order"` FolderCountry string `json:"Country"` FolderYear int `json:"Year"` FolderMonth int `json:"Month"` FolderFavorite bool `json:"Favorite"` FolderPrivate bool `json:"Private"` FolderIgnore bool `json:"Ignore"` FolderWatch bool `json:"Watch"` } // NewFolder copies values from an arbitrary model into a Folder form. func NewFolder(m any) (f Folder, err error) { err = deepcopier.Copy(m).To(&f) return f, err }