You can disable the "composites" 
analyzer: 
https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md#composites

Update the "analyses" configuration to include "composites": false, as 
described here: 
https://github.com/golang/tools/blob/master/gopls/doc/settings.md#analyses-mapstringbool
 

On Thursday, December 22, 2022 at 11:31:43 AM UTC-5 Torsten Bronger wrote:

> Hallöchen!
>
> My text editor uses gopls output to enrich the display of the source
> code. Unfortunately, I have “struct literal uses unkeyed fields”
> all over the place. I don’t want to do anything about it because
> this would bloat by bson.D literals (currently interacting with
> MongoDB). So, how can I suppress that?
>
> Thank you!
>
> Regards,
> Torsten.
>
> -- 
> Torsten Bronger
>
>

-- 
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/9330a037-0039-46dc-a6a2-b75fb6a4d688n%40googlegroups.com.

Reply via email to