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
-- 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/7a0bdf53-e2fe-4598-a800-3fece84b0687n%40googlegroups.com.