| 1 | // Copyright 2023 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // The unmarshal package defines an Analyzer that checks for passing |
| 6 | // non-pointer or non-interface types to unmarshal and decode functions. |
| 7 | // |
| 8 | // # Analyzer unmarshal |
| 9 | // |
| 10 | // unmarshal: report passing non-pointer or non-interface values to unmarshal |
| 11 | // |
| 12 | // The unmarshal analysis reports calls to functions such as json.Unmarshal |
| 13 | // in which the argument type is not a pointer or an interface. |
| 14 | package unmarshal |