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

CHORE: Linting (#1704)

* Remove deprecated io/ioutil
* fixup!
* staticcheck and linting
* revert models/provider.go
* Fix imports to new style
* linting
This commit is contained in:
Tom Limoncelli
2022-08-14 20:46:56 -04:00
committed by GitHub
parent e1b6b163d7
commit ccb582b278
73 changed files with 130 additions and 176 deletions

View File

@@ -1,9 +1,10 @@
package powerdns
import (
"strings"
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/mittwald/go-powerdns/apis/zones"
"strings"
)
// toRecordConfig converts a PowerDNS DNSRecord to a RecordConfig. #rtype_variations

View File

@@ -2,11 +2,12 @@ package powerdns
import (
"fmt"
"github.com/mittwald/go-powerdns/apis/zones"
"strings"
"testing"
"github.com/mittwald/go-powerdns/apis/zones"
"github.com/stretchr/testify/assert"
)
import "github.com/stretchr/testify/assert"
func TestToRecordConfig(t *testing.T) {
record := zones.Record{

View File

@@ -2,12 +2,13 @@ package powerdns
import (
"context"
"net/http"
"strings"
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
"github.com/mittwald/go-powerdns/apis/zones"
"github.com/mittwald/go-powerdns/pdnshttp"
"net/http"
"strings"
)
// GetNameservers returns the nameservers for a domain.

View File

@@ -3,6 +3,7 @@ package powerdns
import (
"encoding/json"
"fmt"
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/providers"
pdns "github.com/mittwald/go-powerdns"