build: make go1.14 the minimum supported Go for building
This commit is contained in:
parent
e4fb5e99ef
commit
2cefae51a1
15 changed files with 16 additions and 53 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue