// MatchFile returns a Userinfo from a passfile entry matching database URL v
// read from the specified file.
MatchFile returns a Userinfo from a passfile entry matching database URL v
read from the specified file.
// MatchFile returns a Userinfo from a passfile entry matching database URL v // read from the specified file .
func MatchFile(v *dburl.URL, file string) (*url.Userinfo, error) {
	entries, err := ParseFile(file)
	if err != nil {
		return nil, &FileError{file, err}
	}
	if entries == nil {
		return nil, nil
	}
	user, err := MatchEntries(v, entries)
	if err != nil {
		return nil, &FileError{file, err}
	}
	return user, nil
}
func MatchFile ( v * dburl . URL , file string ) ( * url . Userinfo , error ) { entries , err := ParseFile ( file ) if err != nil { return nil , & FileError { file , err } } if entries == nil { return nil , nil } user , err := MatchEntries ( v , entries ) if err != nil { return nil , & FileError { file , err } } return user , nil }
MatchFile returns a Userinfo from a passfile entry matching database URL v
read from the specified file.
MatchFile returns a Userinfo from a passfile entry matching database URL v read from the specified file .