Skip to content

Commit f387f62

Browse files
committed
Added AsMap method
1 parent fd1f2f0 commit f387f62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

properties.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ func (m *Map) Values() []string {
379379
return values
380380
}
381381

382+
// AsMap return the underlying map[string]string. This is useful if you need to
383+
// for ... range but without the requirement of the ordered elements.
384+
func (m *Map) AsMap() map[string]string {
385+
return m.kv
386+
}
387+
382388
// Clone makes a copy of the Map
383389
func (m *Map) Clone() *Map {
384390
clone := NewMap()

0 commit comments

Comments
 (0)