github.com/hmarr/codeowners (go): Package codeowners is a library for working with CODEOWNERS files.  CODEOWNERS files map gitignore-style path patterns to sets of owners, which may be GitHub users, GitHub teams, or email addresses. This library parses the CODEOWNERS file format into rulesets, which may then be used to determine the ownership of files.  To find the owner of a given file, parse a CODEOWNERS file and call Match() on the resulting ruleset.  A command line interface is also available in the cmd/codeowners package. When run, it will walk the directory tree showing the code owners for each file encountered. The help flag lists available options.
Keywords: cli|codeowners|go