Improved documentation

This commit is contained in:
Eduard Urbach 2023-07-06 15:15:51 +02:00
parent 1703dcb60d
commit 022107d796
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -25,7 +25,12 @@ users := ocean.New[User]()
users.Set("1", &User{Name: "User 1"})
// Read from memory
user, err := users.Get("1")
firstUser, err := users.Get("1")
// Iterate over all users
for user := range users.All() {
fmt.Println(user.Name)
}
```
In a real project you would usually prefix your collections with a project or company name: