1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CHORE: linting (#2098)

This commit is contained in:
Tom Limoncelli
2023-02-27 20:28:17 -05:00
committed by GitHub
parent 4eab96226c
commit 169d7c8062
9 changed files with 35 additions and 31 deletions

View File

@@ -181,6 +181,7 @@ func (c *bindProvider) GetZoneRecords(domain string) (models.Records, error) {
return ParseZoneContents(string(content), domain, zonefileName)
}
// ParseZoneContents parses a string as a BIND zone and returns the records.
func ParseZoneContents(content string, zoneName string, zonefileName string) (models.Records, error) {
zp := dns.NewZoneParser(strings.NewReader(content), zoneName, zonefileName)