This file is indexed.

/usr/share/gocode/src/github.com/mitchellh/go-fs/fat/type.go is in golang-github-mitchellh-go-fs-dev 0.0~git20161108.7bae45d-3.

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
package fat

import "github.com/mitchellh/go-fs"

// FATType is a simple enum of the available FAT filesystem types.
type FATType uint8

const (
	FAT12 FATType = iota
	FAT16
	FAT32
)

// TypeForDevice determines the usable FAT type based solely on
// size information about the block device.
func TypeForDevice(device fs.BlockDevice) FATType {
	sizeInMB := device.Len() / (1024 * 1024)
	switch {
	case sizeInMB < 4:
		return FAT12
	case sizeInMB < 512:
		return FAT16
	default:
		return FAT32
	}
}