(firstLine []byte)
| 164 | } |
| 165 | |
| 166 | func (header *Header) MatchFileHeader(firstLine []byte) bool { |
| 167 | if header.HeaderRegex != nil { |
| 168 | return header.HeaderRegex.Match(firstLine) |
| 169 | } |
| 170 | |
| 171 | return false |
| 172 | } |
| 173 | |
| 174 | // HasFileSignature checks the presence of a stored signature |
| 175 | func (header *Header) HasFileSignature() bool { |