mirror of
https://github.com/samber/lo.git
synced 2025-09-26 20:11:13 +08:00
Update README.md
This commit is contained in:
@@ -58,8 +58,6 @@ names := lo.Uniq([]string{"Samuel", "John", "Samuel"})
|
|||||||
// []string{"Samuel", "John"}
|
// []string{"Samuel", "John"}
|
||||||
```
|
```
|
||||||
|
|
||||||
Most of the time, the compiler will be able to infer the type so that you can call: `lo.Uniq([]string{...})`.
|
|
||||||
|
|
||||||
### Tips for lazy developers
|
### Tips for lazy developers
|
||||||
|
|
||||||
I cannot recommend it, but in case you are too lazy for repeating `lo.` everywhere, you can import the entire library into the namespace.
|
I cannot recommend it, but in case you are too lazy for repeating `lo.` everywhere, you can import the entire library into the namespace.
|
||||||
|
Reference in New Issue
Block a user