This 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
}
},