Skip to content

Commit 47e2a1b

Browse files
committed
housekeeping (staticcheck, gofmt, go vet.....)
1 parent 4eeb767 commit 47e2a1b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

client/client_testui.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (c *TestUIClient) Close(ctx context.Context) error {
5656
func (c *TestUIClient) CreatePublicKey(ctx context.Context, key string, comment *string, tags []string) (PublicKey, error) {
5757
keyParts := strings.Split(key, " ")
5858
if len(keyParts) < 2 {
59-
return PublicKey{}, errors.New("Invalid key provided")
59+
return PublicKey{}, errors.New("invalid key provided")
6060
}
6161
// algorithm, data := keyParts[0], strings.Join(slices.SliceTo(keyParts, 1, len(keyParts)), " ")
6262
algorithm, data := keyParts[0], keyParts[1]
@@ -72,7 +72,7 @@ func (c *TestUIClient) GetPublicKey(ctx context.Context, id ID) (PublicKey, erro
7272
}); ok {
7373
return c.publicKeys[i], nil
7474
}
75-
return PublicKey{}, fmt.Errorf("PublicKey with id %v not found", id)
75+
return PublicKey{}, fmt.Errorf("public key with id %v not found", id)
7676
}
7777

7878
func (c *TestUIClient) GetPublicKeys(ctx context.Context, ids ...ID) ([]PublicKey, error) {
@@ -95,7 +95,7 @@ func (c *TestUIClient) UpdatePublicKeyTags(ctx context.Context, id ID, tags []st
9595
c.publicKeys[i].Tags = tags
9696
return nil
9797
}
98-
return fmt.Errorf("PublicKey with id %v not found", id)
98+
return fmt.Errorf("public key with id %v not found", id)
9999
}
100100

101101
func (c *TestUIClient) DeletePublicKeys(ctx context.Context, ids ...ID) error {
@@ -127,7 +127,7 @@ func (c *TestUIClient) GetTarget(ctx context.Context, id ID) (Target, error) {
127127
}); ok {
128128
return c.targets[i], nil
129129
}
130-
return Target{}, fmt.Errorf("Target with id %v not found", id)
130+
return Target{}, fmt.Errorf("target with id %v not found", id)
131131
}
132132

133133
func (c *TestUIClient) GetTargets(ctx context.Context, ids ...ID) ([]Target, error) {
@@ -148,7 +148,7 @@ func (c *TestUIClient) UpdateTarget(ctx context.Context, id ID, target Target) e
148148
c.targets[i].Port = target.Port
149149
return nil
150150
}
151-
return fmt.Errorf("Target with id %v not found", id)
151+
return fmt.Errorf("target with id %v not found", id)
152152
}
153153

154154
func (c *TestUIClient) DeleteTargets(ctx context.Context, ids ...ID) error {
@@ -180,7 +180,7 @@ func (c *TestUIClient) GetAccount(ctx context.Context, id ID) (Account, error) {
180180
}); ok {
181181
return c.accounts[i], nil
182182
}
183-
return Account{}, fmt.Errorf("Account with id %v not found", id)
183+
return Account{}, fmt.Errorf("account with id %v not found", id)
184184
}
185185

186186
func (c *TestUIClient) GetAccounts(ctx context.Context, ids ...ID) ([]Account, error) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/toeirei/keymaster
22

3-
go 1.25.7
3+
go 1.25.8
44

55
require (
66
github.com/DATA-DOG/go-sqlmock v1.5.2

0 commit comments

Comments
 (0)