mirror of
https://github.com/donl/bimap.git
synced 2026-05-25 22:06:41 -06:00
Create README.md
This commit is contained in:
parent
392b758d5e
commit
3e79b36617
1 changed files with 18 additions and 0 deletions
18
README.md
Normal file
18
README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# bimap
|
||||
A bidirectional map written in Go
|
||||
|
||||
## Installation
|
||||
```
|
||||
go get github.com/vishalkuo/bimap
|
||||
```
|
||||
|
||||
## Usage
|
||||
```
|
||||
import "github.com/vishalkuo/bimap"
|
||||
|
||||
biMap := biMap.NewBiMap()
|
||||
biMap.Insert("key", "value")
|
||||
val, ok := biMap.InverseGet("value") // val should be "key", ok should be true
|
||||
biMap.Delete("key")
|
||||
biMap.Size() // == 0
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue