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

@@ -6,10 +6,12 @@ import "github.com/StackExchange/dnscontrol/v3/models"
// a group of records.
//
// RecordDB is a container of many model.RecordConfig
type RecordDB = struct {
labelAndTypeMap map[models.RecordKey]struct{}
}
// NewFromRecords creates a RecordDB from a list of model.RecordConfig.
func NewFromRecords(recs models.Records) *RecordDB {
result := &RecordDB{}