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:
@@ -2,6 +2,7 @@ package hexonet
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/hexonet/go-sdk/v3/response"
|
||||
)
|
||||
|
||||
|
@@ -4,6 +4,7 @@ package hexonet
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v3/pkg/version"
|
||||
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||
hxcl "github.com/hexonet/go-sdk/v3/apiclient"
|
||||
|
@@ -4,13 +4,13 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v3/models"
|
||||
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||
"github.com/StackExchange/dnscontrol/v3/pkg/txtutil"
|
||||
)
|
||||
|
||||
@@ -160,12 +160,13 @@ func toRecord(r *HXRecord, origin string) *models.RecordConfig {
|
||||
return rc
|
||||
}
|
||||
|
||||
func (n *HXClient) showCommand(cmd map[string]string) {
|
||||
func (n *HXClient) showCommand(cmd map[string]string) error {
|
||||
b, err := json.MarshalIndent(cmd, "", " ")
|
||||
if err != nil {
|
||||
fmt.Errorf("error: %w", err)
|
||||
return fmt.Errorf("error: %w", err)
|
||||
}
|
||||
printer.Printf(string(b))
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n *HXClient) updateZoneBy(params map[string]interface{}, domain string) error {
|
||||
|
Reference in New Issue
Block a user