Skip to content

Commit 345368d

Browse files
committed
chore(pkg): go fmt
1 parent 62c396c commit 345368d

7 files changed

Lines changed: 6 additions & 118 deletions

File tree

env/envvar.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Package env provides functions for managing and manipulating environment variables
2+
// within the Drycc platform.
13
package env
24

35
import (
@@ -99,5 +101,4 @@ func Set(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
99101
c.Put(name, val)
100102
}
101103
return true, nil
102-
103104
}

env/envvar_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func TestSet(t *testing.T) {
8484
t.Errorf("Expected context var %s to be '%s', got '%s'", k, v, cv)
8585
}
8686
}
87-
8887
}
8988

9089
// TestGetInterpolation is a regression test to make sure that values are

log/log_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import (
99
"github.com/stretchr/testify/assert"
1010
)
1111

12-
var (
13-
world = "world"
14-
)
12+
var world = "world"
1513

1614
func getWriters() (io.Writer, *bytes.Buffer, io.Writer, *bytes.Buffer) {
1715
var out, err bytes.Buffer

prettyprint/colorizer.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var Colors = map[string]string{
6161

6262
// DryccIfy returns a pretty-printed drycc logo along with the corresponding message
6363
func DryccIfy(msg string) string {
64-
var t = struct {
64+
t := struct {
6565
Msg string
6666
C map[string]string
6767
}{
@@ -115,7 +115,7 @@ func Colorize(msg string) string {
115115
//
116116
// {{.C.Red}}Message:{{.C.Default}} .V.Msg
117117
func ColorizeVars(msg string, vars interface{}) string {
118-
var t = struct {
118+
t := struct {
119119
V interface{}
120120
C map[string]string
121121
}{
@@ -156,7 +156,6 @@ func Overwrite(msg string) string {
156156
}
157157
pad := 80 - len(msg)
158158
return msg + strings.Repeat(" ", pad) + "\r"
159-
160159
}
161160

162161
// Overwritef formats a string and then returns an overwrite line.

time/time.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package time provides custom time handling and formatting utilities for the Drycc platform.
12
package time
23

34
import "time"

utils/utils.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

utils/utils_test.go

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)