package unusedwrite

import "golang.org/x/tools/go/analysis/passes/unusedwrite"

Package unusedwrite checks for unused writes to the elements of a struct or array object.

Index

Package Files

unusedwrite.go

Constants

const Doc = "" /* 602 byte string literal not displayed */

Doc is a documentation string.

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "unusedwrite",
    Doc:      Doc,
    Requires: []*analysis.Analyzer{buildssa.Analyzer},
    Run:      run,
}

Analyzer reports instances of writes to struct fields and arrays that are never read.

Package unusedwrite imports 5 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

.
Tools for package owners.