Versions in this module Expand all Collapse all v1 v1.24.5 Aug 14, 2025 Changes in this version + const Diff + const Filter + const GitlabLanguage + const LinguistDetectable + const LinguistDocumentation + const LinguistGenerated + const LinguistLanguage + const LinguistVendored + const Lockable + var LinguistAttributes = []string + func CheckAttributes(ctx context.Context, gitRepo *git.Repository, treeish string, ...) (map[string]*Attributes, error) + type Attribute string + func (a Attribute) IsUnspecified() bool + func (a Attribute) ToBool() optional.Option[bool] + func (a Attribute) ToString() optional.Option[string] + type Attributes struct + func NewAttributes() *Attributes + func (attrs *Attributes) Get(name string) Attribute + func (attrs *Attributes) GetDetectable() optional.Option[bool] + func (attrs *Attributes) GetDocumentation() optional.Option[bool] + func (attrs *Attributes) GetGenerated() optional.Option[bool] + func (attrs *Attributes) GetGitlabLanguage() optional.Option[string] + func (attrs *Attributes) GetLanguage() optional.Option[string] + func (attrs *Attributes) GetLinguistLanguage() optional.Option[string] + func (attrs *Attributes) GetVendored() optional.Option[bool] + type BatchChecker struct + func NewBatchChecker(repo *git.Repository, treeish string, attributes []string) (checker *BatchChecker, returnedErr error) + func (c *BatchChecker) CheckPath(path string) (rs *Attributes, err error) + func (c *BatchChecker) Close() error + type CheckAttributeOpts struct + Attributes []string + Filenames []string