From 0fe35ba5c534e863aeef03d55b788598e4bd51a2 Mon Sep 17 00:00:00 2001 From: haoyun Date: Mon, 1 Jul 2019 14:18:11 +0800 Subject: [PATCH] fix strings.ReplaceAll() does't exist error while go version bellow 1.12 --- pkg/commands/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/image.go b/pkg/commands/image.go index 51bc94d9..41f9b99f 100644 --- a/pkg/commands/image.go +++ b/pkg/commands/image.go @@ -68,7 +68,7 @@ func (l *Layer) GetDisplayStrings(isFocused bool) []string { createdBy = utils.ColoredString(split[0], color.FgYellow) + " " + strings.Join(split[1:], " ") } - createdBy = strings.ReplaceAll(createdBy, "\t", " ") + createdBy = strings.Replace(createdBy, "\t", " ", -1) size := utils.FormatBinaryBytes(int(l.Size)) sizeColor := color.FgWhite