2021-12-03 15:28:09 +08:00
2021-12-03 15:28:09 +08:00
🎉 maps
2021-12-03 15:26:41 +08:00
2021-12-03 15:15:01 +08:00
🎉 maps
2021-12-03 15:26:41 +08:00
🎉 maps
2021-12-03 15:26:41 +08:00
🎉 maps
2021-12-03 15:26:41 +08:00

maps

###maps 可根据map的key按照有序排序的map包

###使用:

  • go get -u github.com/cowardmrx/maps
// Set
maps := NewMaps()
maps.Set("key1", "123123")

// Exist
maps.Exist("key1")

// Get
maps.Get("key")

// Delete
maps.Delete("key1","key2")

// GetMapsKeys return a []string
maps.Keys() 

// GetMapsValues return a []interface
maps.Values()

// GetMapsOriginMap get this maps origin data return a map[string]interface
maps.OriginMap()

// SortKey sort this maps by keys
maps.SortKey()

// other example ./maps_test.go
Description
No description provided
Readme Apache-2.0 33 KiB
Languages
Go 100%