Update README.md

This commit is contained in:
Samuel Berthe
2025-04-26 19:43:12 +02:00
committed by GitHub
parent 4fdf4d1fe2
commit 7f3c0b84fd

View File

@@ -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.