This file is indexed.

/usr/share/gocode/src/github.com/ctdk/goiardi/depgraph/noun.go is in golang-github-ctdk-goiardi-dev 0.11.7-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package depgraph

import (
	"fmt"

	"github.com/ctdk/goiardi/digraph"
)

// Nouns are the key structure of the dependency graph. They can
// be used to represent all objects in the graph. They are linked
// by depedencies.
type Noun struct {
	Name string // Opaque name
	Meta interface{}
	Deps []*Dependency
}

// Edges returns the out-going edges of a Noun
func (n *Noun) Edges() []digraph.Edge {
	edges := make([]digraph.Edge, len(n.Deps))
	for idx, dep := range n.Deps {
		edges[idx] = dep
	}
	return edges
}

func (n *Noun) GoString() string {
	return fmt.Sprintf("*%#v", *n)
}

func (n *Noun) String() string {
	return n.Name
}