Skip to content

Commit

Permalink
doc: update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Jun 4, 2023
1 parent 0096847 commit ce032c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ This package provides the following data structure interfaces and implementation

- [`ConcurrentHashSet`](https://pkg.go.dev/github.com/ghosind/collection#ConcurrentHashSet): The thread safe implementation of Set based on Go built-in map structure.

- `Map`: A object that maps keys to values, and it cannot contain duplicate key.

- [`HashMap`](https://pkg.go.dev/github.com/ghosind/collection#HashMap): The implementation of Map based on Go built-in map structure.

## Installation

You can install this package by the following command.
Expand Down
1 change: 1 addition & 0 deletions map.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package collection

// Map is a object that maps keys to values, and it cannot contain duplicate key.
type Map[K comparable, V any] interface {
// Clear removes all key-value pairs in this map.
Clear()
Expand Down

0 comments on commit ce032c3

Please sign in to comment.