Documentation ¶ Index ¶ Constants func StemFromPath(path string) string func StripWithPolicy(stem string, policy Policy) (string, bool) type Kind type Policy func DetectPolicyForPaths(paths []string, threshold float64, minFiles int) Policy type Prefix func ParseStem(stem string) Prefix Constants ¶ View Source const ( DefaultThreshold = 0.5 DefaultMinFiles = 5 ) Variables ¶ This section is empty. Functions ¶ func StemFromPath ¶ func StemFromPath(path string) string func StripWithPolicy ¶ func StripWithPolicy(stem string, policy Policy) (string, bool) Types ¶ type Kind ¶ type Kind string const ( KindNone Kind = "" KindRank Kind = "rank" KindDate Kind = "date" ) type Policy ¶ type Policy struct { Kind Kind Enabled bool } func DetectPolicyForPaths ¶ func DetectPolicyForPaths(paths []string, threshold float64, minFiles int) Policy type Prefix ¶ type Prefix struct { Kind Kind Rest string } func ParseStem ¶ func ParseStem(stem string) Prefix Source Files ¶ View all Source files prefix.go Click to show internal directories. Click to hide internal directories.