Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The relation between a usage and its definition. RelationKindDef = RelationKind("definition") // The relation between a definition and its references. RelationKindRef = RelationKind("reference") // The relation between an interface and its implementation. RelationKindImpl = RelationKind("implementation") // The relation between an implementation and its interface. RelationKindIface = RelationKind("interface") )
Variables ¶
View Source
var AllRelationKindStrings []string
View Source
var AllRelationKinds []RelationKind
Functions ¶
This section is empty.
Types ¶
type Relation ¶
type Relation struct { file.Loc Kind RelationKind Pkg string Name string }
Relation represents a relationship between an identifier to some other part of the codebase.
type RelationKind ¶
type RelationKind string
func RelationKindFromString ¶
func RelationKindFromString(s string) (RelationKind, error)
func RelationKindsFromStrings ¶
func RelationKindsFromStrings(relKindStrings []string) ([]RelationKind, error)
type RelationSlice ¶
type RelationSlice []Relation
func (RelationSlice) Less ¶
func (rs RelationSlice) Less(i, j int) bool
Less implements sort.Interface#Less
func (RelationSlice) Swap ¶
func (rs RelationSlice) Swap(i, j int)
Swap implements sort.Interface#Swap
Click to show internal directories.
Click to hide internal directories.