...

Package unmarshal

import "golang.org/x/tools/go/analysis/passes/unmarshal"
Overview
Index
Subdirectories

Overview ▾

The unmarshal package defines an Analyzer that checks for passing non-pointer or non-interface types to unmarshal and decode functions.

Index ▾

Package files

unmarshal.go

Constants

const Doc = `report passing non-pointer or non-interface values to unmarshal

The unmarshal analysis reports calls to functions such as json.Unmarshal
in which the argument type is not a pointer or an interface.`

Variables

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

Subdirectories

Name Synopsis
..
cmd
unmarshal The unmarshal command runs the unmarshal analyzer.