feat: add WebAppFileMap::Values

This commit is contained in:
Derrick Hammer 2024-03-03 03:33:36 -05:00
parent cc5666ac1c
commit cb7295408c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 9 additions and 0 deletions

View File

@ -141,6 +141,15 @@ func (wafm *WebAppFileMap) Keys() []string {
return ret return ret
} }
func (wafm *WebAppFileMap) Values() []WebAppMetadataFileReference {
values := wafm.Map.Values()
ret := make([]WebAppMetadataFileReference, len(values))
for i, value := range values {
ret[i] = value.(WebAppMetadataFileReference)
}
return ret
}
func (wafm *WebAppFileMap) Sort() { func (wafm *WebAppFileMap) Sort() {
keys := wafm.Keys() keys := wafm.Keys()
newMap := NewWebAppFileMap() newMap := NewWebAppFileMap()