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

@ -4,6 +4,7 @@ import (
"encoding/base64"
"encoding/binary"
"github.com/dop251/scsu"
"github.com/klauspost/compress/huff0"
)
@ -37,7 +38,7 @@ func EncodeBytes(s string) (table byte, payload []byte) {
if i == tableSCSU {
var err error
olen := len(org)
org, err = scsuEncodeStrict(s, make([]byte, 0, len(org)))
org, err = scsu.EncodeStrict(s, make([]byte, 0, len(org)))
if err != nil || olen <= len(org) {
continue
}