This file is indexed.

/usr/share/gocode/src/github.com/lxc/lxd/shared/stringset.go is in golang-github-lxc-lxd-dev 2.0.2-0ubuntu1~16.04.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
// That this code needs to exist is kind of dumb, but I'm not sure how else to
// do it.
package shared

type StringSet map[string]bool

func (ss StringSet) IsSubset(oss StringSet) bool {
	for k, _ := range map[string]bool(ss) {
		if _, ok := map[string]bool(oss)[k]; !ok {
			return false
		}
	}

	return true
}

func NewStringSet(strings []string) StringSet {
	ret := map[string]bool{}
	for _, s := range strings {
		ret[s] = true
	}

	return StringSet(ret)
}