libs5-go/metadata/web_app.go

21 lines
559 B
Go

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,
}
}