Skip to content

Commit

Permalink
feat: add orderedmap with support for sorting and serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
fufuok committed Jan 2, 2024
1 parent ffc6fa3 commit 155f90a
Show file tree
Hide file tree
Showing 13 changed files with 1,274 additions and 1,461 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,17 @@ type TryMutex struct{ ... }

- [`xslices`](generic/xslices) slices 扩展助手函数.
- [`deepcopy`](generic/deepcopy) DeepCopy makes deep copies of things: unexported field values are not copied.. [@smallnest](https://github.com/smallnest)
- [`orderedmap`](generic/orderedmap): a ordered map in Go with amortized O(1) for Set, Get, Delete and Len. [@elliotchance](https://github.com/elliotchance)
- [`atox`](generic/atox): a generic wrapper for the Parse* functions in the strconv package. [@josharian](https://github.com/josharian)
- 更多泛型方法可参考: [zyedidia/generic](https://github.com/zyedidia/generic)

### 有序字典

见: [orderedmap](orderedmap) ([@iancoleman](https://github.com/fufuok/utils/orderedmap))

A golang data type equivalent to python's collections.OrderedDict

支持 JSON 序列化, 键/值排序.

### 数据类型转换函数集

见: [conv](conv) ([@tidwall](https://github.com/tidwall/conv))
Expand Down
273 changes: 0 additions & 273 deletions generic/orderedmap/README.md

This file was deleted.

99 changes: 0 additions & 99 deletions generic/orderedmap/list.go

This file was deleted.

Loading

0 comments on commit 155f90a

Please sign in to comment.