I have an immutable structure. It contains methods that create a new copy, modify and return it.
Are there any linters that can verify that the result of the methods will be assigned to a variable or returned from a function? I can manually specify a list of the methods.
For example, the linter will detect the following cases:
https://play.golang.org/p/Aje-DeWBnKd