fix strings.ReplaceAll() does't exist error while go version bellow 1.12

pull/32/head
haoyun 5 years ago
parent f4f56055e5
commit 0fe35ba5c5

@ -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

Loading…
Cancel
Save