feat: add WebAppFileMap::Values
This commit is contained in:
parent
cc5666ac1c
commit
cb7295408c
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue