Merge pull request #32 from jonyhy96/master

fix strings.ReplaceAll() does't exist error while go version bellow 1.12
This commit is contained in:
Jesse Duffield 2019-07-01 16:30:09 +10:00 committed by GitHub
commit a51bb830a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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