diff --git a/crypto_test.go b/crypto_test.go index faaed23..ec6eab6 100644 --- a/crypto_test.go +++ b/crypto_test.go @@ -442,7 +442,7 @@ func TestEncryptDecryptAES(t *testing.T) { } func TestCompressDecompressGzip(t *testing.T) { - tpl := `{{"plaintext" | gzip | ungzip }}` + tpl := `{{"plaintext" | gzip | gunzip }}` if err := runt(tpl, "plaintext"); err != nil { t.Error(err) } diff --git a/functions.go b/functions.go index 8bb01cb..de1fc4c 100644 --- a/functions.go +++ b/functions.go @@ -354,7 +354,7 @@ var genericMap = map[string]interface{}{ "decryptAES": decryptAES, "randBytes": randBytes, "gzip": gzipCompress, - "ungzip": gzipDecompress, + "gunzip": gzipDecompress, // UUIDs: "uuidv4": uuidv4,