Go

Go

Made by DeepSource

Simplify slice expression to sliced value itself CRT-A0016

Anti-pattern
Major
Autofix

If a value is of type slice already, it need not be converted to slice again.

Bad practice

f(s[:])               // s is string
copy(b[:], values...) // b is []byte

Recommended

f(s)
copy(b, values...)