pkglemma

package
v0.0.0-...-90fa682 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

The pkglemma package is a demonstration and test of the package lemma mechanism.

The output of the pkglemma analysis is a set of key/values pairs gathered from the analyzed package and its imported dependencies. Each key/value pair comes from a top-level constant declaration whose name starts with "_". For example:

     package p

	const _greeting  = "hello"
	const _audience  = "world"

the pkglemma analysis output for package p would be:

{"greeting": "hello", "audience": "world"}.

In addition, the analysis reports a finding at each import showing which key/value pairs it contributes.

Index

Constants

This section is empty.

Variables

View Source
var Analysis = &analysis.Analysis{
	Name:       "pkglemma",
	Doc:        "gather name/value pairs from constant declarations",
	Run:        run,
	LemmaTypes: []reflect.Type{reflect.TypeOf(new(note))},
	OutputType: reflect.TypeOf(map[string]string{}),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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