From 62bc189678c5492acba5b3c5cef143703c341cc2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 9 Jan 2024 08:16:42 -0500 Subject: [PATCH] refactor: add empty metadata struct constructors --- metadata/media_metadata.go | 3 +++ metadata/web_app.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/metadata/media_metadata.go b/metadata/media_metadata.go index cdaedc1..9222da5 100644 --- a/metadata/media_metadata.go +++ b/metadata/media_metadata.go @@ -24,3 +24,6 @@ func NewMediaMetadata(name string, details MediaMetadataDetails, parents []Metad ExtraMetadata: extraMetadata, } } +func NewEmptyMediaMetadata() *MediaMetadata { + return &MediaMetadata{} +} diff --git a/metadata/web_app.go b/metadata/web_app.go index 2ad47e2..0e70e33 100644 --- a/metadata/web_app.go +++ b/metadata/web_app.go @@ -22,3 +22,6 @@ func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetada Paths: paths, } } +func NewEmptyWebAppMetadata() *WebAppMetadata { + return &WebAppMetadata{} +}