diff --git a/categories/go.md b/categories/go.md index da6b856..bcaaa74 100644 --- a/categories/go.md +++ b/categories/go.md @@ -67,6 +67,13 @@ ch := make(chan Task, 3) \`aaa bbb ccc\` - panic / recover +- `sync.Map` is concurrent/ thread safe `map`, normal `map` isn't + +```go +m := new(sync.Map) +m.Store("a", "b") +value, ok := m.Load("a") +``` # Frameworks @@ -199,4 +206,4 @@ REPL stands for read eval print loop, basically it just like the irb in Ruby. Wiki: -* gore \ No newline at end of file +* gore