issue57949

command module
v0.0.0-...-d058d30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: BSD-2-Clause Imports: 12 Imported by: 0

README

This is a program to collect data for https://github.com/golang/go/issues/57949

It follows the normal go tool conventions via go/packages.

It counts keyed struct literals. It specifically counts the following patterns

key: identifier,
key: qualified.identifier,
key: *identifier,
key: *qualified.identifier,
key: &identifier,
key: &qualified.identifier,

For each of these patterns it also records when key and identifier match exactly or partially. == is used for an exact match. A partial match are not counted for patterns with a qualified identifier and uses x != y && strings.EqualFold(x, y). Partial matches are for cases such as Title: title.

Results are per-package followed by a total of all packages queried.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL