libs5-go/metadata/web_app.go

21 lines
559 B
Go
Raw Normal View History

2024-01-05 14:02:26 +00:00
package metadata
type WebAppMetadata struct {
Metadata
Name string
TryFiles []string
ErrorPages map[int]string
ExtraMetadata ExtraMetadata
Paths map[string]WebAppMetadataFileReference
}
func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages map[int]string, paths map[string]WebAppMetadataFileReference) *WebAppMetadata {
return &WebAppMetadata{
Name: name,
TryFiles: tryFiles,
ExtraMetadata: extraMetadata,
ErrorPages: errorPages,
Paths: paths,
}
}