musttag does not report forgotten A struct annotations in the example below:
package main
import "encoding/json"
type A struct {
Name string
}
type B struct {
Slice []A `json:"slice"`
Map map[string]A `json:"map"`
}
func main() {
_, _ = json.Marshal(B{})
}