mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
format code with gofumpt
Format the code with gofumpt to prevent my IDE from reformatting every time I open a file. gofumpt provides a superset of gofmt, so should not impact users that are not using gofumpt. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c01c9c29f4
commit
446e00520c
44 changed files with 69 additions and 93 deletions
|
|
@ -51,7 +51,7 @@ func (p *jsonWriter) Start(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func (p *jsonWriter) Event(e Event) {
|
||||
var message = &jsonMessage{
|
||||
message := &jsonMessage{
|
||||
DryRun: p.dryRun,
|
||||
Tail: false,
|
||||
ID: e.ID,
|
||||
|
|
@ -75,7 +75,7 @@ func (p *jsonWriter) Events(events []Event) {
|
|||
}
|
||||
|
||||
func (p *jsonWriter) TailMsgf(msg string, args ...interface{}) {
|
||||
var message = &jsonMessage{
|
||||
message := &jsonMessage{
|
||||
DryRun: p.dryRun,
|
||||
Tail: true,
|
||||
ID: "",
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ import (
|
|||
"context"
|
||||
)
|
||||
|
||||
type noopWriter struct {
|
||||
}
|
||||
type noopWriter struct{}
|
||||
|
||||
func (p *noopWriter) Start(ctx context.Context) error {
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -345,6 +345,4 @@ func lenAnsi(s string) int {
|
|||
return length
|
||||
}
|
||||
|
||||
var (
|
||||
percentChars = strings.Split("⠀⡀⣀⣄⣤⣦⣶⣷⣿", "")
|
||||
)
|
||||
var percentChars = strings.Split("⠀⡀⣀⣄⣤⣦⣶⣷⣿", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue