This file is indexed.

/usr/share/gocode/src/github.com/pkg/sftp/packet-manager_legacy.go is in golang-github-pkg-sftp-dev 0.0~git20170704.0.e97b9a4-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
// +build !go1.8

package sftp

import "sort"

// for sorting/ordering outgoing
type responsePackets []responsePacket

func (r responsePackets) Len() int           { return len(r) }
func (r responsePackets) Swap(i, j int)      { r[i], r[j] = r[j], r[i] }
func (r responsePackets) Less(i, j int) bool { return r[i].id() < r[j].id() }
func (r responsePackets) Sort()              { sort.Sort(r) }

// for sorting/ordering incoming
type requestPacketIDs []uint32

func (r requestPacketIDs) Len() int           { return len(r) }
func (r requestPacketIDs) Swap(i, j int)      { r[i], r[j] = r[j], r[i] }
func (r requestPacketIDs) Less(i, j int) bool { return r[i] < r[j] }
func (r requestPacketIDs) Sort()              { sort.Sort(r) }