This <https://gist.github.com/dc0d/91c934f3d6e396c247010b5109bc8492> is a simple snippet for writing BDD-style tests in go.
When the package support is imported in the tests for another package, vscode shows a warning composite literal uses unkeyed fields. How to suppress this message? What would be nice to have, is a comment for ignoring these cases, at least in tests. Like //nolint comment of golangci-lint tool. Currently, the only way to suppress this warning, is to change this setting for gopls, which is not the best solution: "gopls": { "analyses": { "composites": false } }, -- 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/66baed29-ae47-4091-b580-9972712f977en%40googlegroups.com.