Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CanonicalBasename is the canonical name of the file.
CanonicalBasename = "AUTHORS.txt"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParseAuthor ¶
type TxtDB ¶
DB uses a file commonly known as AUTHORS.txt and provides an interface to lookup information. It is fully synchronized.
func (*TxtDB) CalculateHash ¶
CalculateHash returns a sha1 sum of the file contents.
func (*TxtDB) GetByEmail ¶
GetByEmail looks an author up by her/his email.
func (*TxtDB) IsGone ¶
IsGone checks if the underlying file still exists. This check together with IsStale() can be used to decide whether the need to initialize a new struct or can reuse the current one, and update it from the files contents.
Click to show internal directories.
Click to hide internal directories.