package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev

# Functions

GuessFromFile tries to guess the kind of the file whose filepath is path.
KindFromString tries to map str to a filekind.
KindFromStrings returns the union of the kinds corresponding to each string in strs.

# Constants

Any is a suggestive alias for both Loc and Kind saturation.
Bin states that this file is a binary.
C is shorthand for CSrc|CHeader.
CHeader states that this file is a C header (.h).
CSrc states that this file is C source code (.c).
InCompile marks that a mapping is part of a compile.
InFuzz marks that a mapping is part of a fuzz.
InOrig marks that a mapping is part of the original source of a subject.
InRecipe marks that a mapping is part of a recipe.
Litmus states that this file is a litmus test.
Log states that this file is a compile log.
Other states that the kind of this file doesn't fit in any of the above categorisations.
Trace states that this file is a fuzzer trace.

# Variables

ErrBadKind occurs if we try to convert a kind from a string that doesn't match any known kind string.

# Type aliases

Kind is the bitflag enumeration of file kinds.
Loc is the bitflag enumeration of file locations.