Skip to content

Commit

Permalink
chore: add example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
kj22k0m committed Sep 7, 2023
1 parent 5c44276 commit f03198b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ Try it now!
package main

import (
"github.com/gonnafaraway/codes/linux"
"os"
"github.com/gonnafaraway/algo/maps"
)

func main() {
os.Exit(linux.WithError)
a := make(map[string]int)
a["1"] = 1
a["2"] = 4
fmt.Println(maps.FindLargestValue(a)) // 4
}
```

0 comments on commit f03198b

Please sign in to comment.