What happens if you just alias the var? argsCopy := args fmt.Printf("%v\n", argsCopy)
On Sun, Jan 28, 2024 at 12:13 PM Steven Hartland <stevenmhartl...@gmail.com> wrote: > When running a test I'm getting: > missing ... in args forwarded to print-like function > > Usually this would be helpful as the pass in variadic should generally be > expanded with ... but in this case I specifically want the result of args > passed > as a slice. > > Is there a way to disable go vet checks for tests on a line by line basis > like what would do with golangci-lint //nocheck: ? > > Regards > Steve > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CAA38peaR%3DhFQPv3cCcDndfsEkqkM-X5s8rC1H%2BeOzAJ3ijhqPQ%40mail.gmail.com > <https://groups.google.com/d/msgid/golang-nuts/CAA38peaR%3DhFQPv3cCcDndfsEkqkM-X5s8rC1H%2BeOzAJ3ijhqPQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-iqasSsyj0qxbFUZrk-iLTsSRtuMb8ZaKcm9f-CCL_1g%40mail.gmail.com.