build: make go1.14 the minimum supported Go for building

This commit is contained in:
Nick Craig-Wood 2021-08-20 18:05:14 +01:00
parent e4fb5e99ef
commit 2cefae51a1
15 changed files with 16 additions and 53 deletions

View file

@ -7,6 +7,7 @@ import (
"errors"
"sync"
"github.com/dop251/scsu"
"github.com/klauspost/compress/huff0"
)
@ -50,7 +51,7 @@ func DecodeBytes(table byte, data []byte) (string, error) {
case tableReserved:
return "", ErrUnsupported
case tableSCSUPlain:
return scsuDecode(data)
return scsu.Decode(data)
case tableRLE:
if len(data) < 2 {
return "", ErrCorrupted
@ -87,7 +88,7 @@ func DecodeBytes(table byte, data []byte) (string, error) {
return "", ErrCorrupted
}
if table == tableSCSU {
return scsuDecode(name)
return scsu.Decode(name)
}
return string(name), nil
}