guregu / null

reasonable handling of nullable values
BSD 2-Clause "Simplified" License
1.84k stars 238 forks source link

null.String composite literal uses unkeyed fields #52

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hey,

I have a question. The null.String type does not have a key specified. Thus, govet as well as sonarqube give me the warning:

vendor/gopkg.in/guregu/null.v3.String composite literal uses unkeyed fields

for a struct using this type. I was wondering if it's possible to change that or if there is a fix for this?

guregu commented 4 years ago

Hello, this should have been fixed a while ago. Does it still happen? My go vet seems to be fine.

ghost commented 4 years ago

I used a workaround. But if it is fixed, we can close this issue. Cheers, man!