Skip to content

Commit

Permalink
chore: stricter gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
honwen committed Jan 31, 2024
1 parent 033750d commit daa5091
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion alidns/AddDomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
type AddDomainArgs struct {
DomainName string

//optional
// optional
GroupId string
}

Expand Down
2 changes: 1 addition & 1 deletion alidns/AddDomainRecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AddDomainRecordArgs struct {
Type string
Value string

//optional
// optional
TTL json.Number
Line string
}
Expand Down
2 changes: 1 addition & 1 deletion alidns/DeleteSubDomainRecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type DeleteSubDomainRecordsArgs struct {
DomainName string
RR string

//optional
// optional
Type string
}

Expand Down
3 changes: 1 addition & 2 deletions alidns/DescribeDomainGroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type DomainGroupType struct {
}

type DescribeDomainGroupsArgs struct {
//optional
// optional
common.Pagination
KeyWord string
}
Expand All @@ -32,7 +32,6 @@ func (client *Client) DescribeDomainGroups(args *DescribeDomainGroupsArgs) (grou
action := "DescribeDomainGroups"
response := &DescribeDomainGroupsResponse{}
err = client.Invoke(action, args, response)

if err != nil {
log.Printf("%s error, %v", action, err)
return nil, err
Expand Down
1 change: 0 additions & 1 deletion alidns/DescribeDomainInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func (client *Client) DescribeDomainInfo(args *DescribeDomainInfoArgs) (domain D
action := "DescribeDomainInfo"
response := &DescribeDomainInfoResponse{}
err = client.Invoke(action, args, response)

if err != nil {
log.Printf("%s error, %v", action, err)
return DomainType{}, err
Expand Down
2 changes: 1 addition & 1 deletion alidns/DescribeDomainRecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/denverdino/aliyungo/common"
type DescribeDomainRecordsArgs struct {
DomainName string

//optional
// optional
common.Pagination
RRKeyWord string
TypeKeyWord string
Expand Down
2 changes: 1 addition & 1 deletion alidns/DescribeDomainRecordsNew.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/denverdino/aliyungo/common"
type DescribeDomainRecordsNewArgs struct {
DomainName string

//optional
// optional
common.Pagination
RRKeyWord string
TypeKeyWord string
Expand Down
1 change: 0 additions & 1 deletion alidns/DescribeDomains.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func (client *Client) DescribeDomains(args *DescribeDomainsArgs) (domains []Doma
action := "DescribeDomains"
response := &DescribeDomainsResponse{}
err = client.Invoke(action, args, response)

if err != nil {
log.Printf("%s error, %v", action, err)
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion alidns/DescribeSubDomainRecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/denverdino/aliyungo/common"
type DescribeSubDomainRecordsArgs struct {
SubDomain string

//optional
// optional
PageNumber int32
PageSize int32
Type string
Expand Down
2 changes: 1 addition & 1 deletion alidns/UpdateDomainRecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type UpdateDomainRecordArgs struct {
Type string
Value string

//optional
// optional
TTL json.Number
Priority json.Number
Line string
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import (
"time"

"github.com/denverdino/aliyungo/common"
dns "github.com/honwen/aliyun-ddns-cli/alidns"
"github.com/honwen/golibs/cip"
"github.com/honwen/golibs/domain"
"github.com/honwen/ip2loc"
"github.com/urfave/cli"

dns "github.com/honwen/aliyun-ddns-cli/alidns"
)

const RR_AT = `@`
Expand Down
1 change: 1 addition & 0 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func TestSplitDomain005(t *testing.T) {
got.T(t).Eq(rr, "*.b.a")
got.T(t).Eq(domain, "example.com")
}

func TestSplitDomain006(t *testing.T) {
rr, domain := domain.SplitDomainToRR("a.example.co.kr")

Expand Down

0 comments on commit daa5091

Please sign in to comment.