diff --git a/categories/go.md b/categories/go.md index 80b627b..f488e27 100644 --- a/categories/go.md +++ b/categories/go.md @@ -1,5 +1,3 @@ -# Go - ## pass pointer or value - value: Variable must not be modified - Variable is a large struct then prefer pointer @@ -150,9 +148,8 @@ func main() { ### RWMutex - > A RWMutex is a reader/writer mutual exclusion lock. The lock can be held by an arbitrary number of readers or a single writer. The zero value for a RWMutex is an unlocked mutex. - -In other words, readers don't have to wait for each other. They only have to wait for writers holding the lock. +!> A RWMutex is a reader/writer mutual exclusion lock. The lock can be held by an arbitrary number of readers or a single writer. The zero value for a RWMutex is an unlocked mutex. +!> In other words, readers don't have to wait for each other. They only have to wait for writers holding the lock. ### string literals