From 6fd9b8df3c5433ccfd044c4886d5ee15609aa38c Mon Sep 17 00:00:00 2001 From: Jie Date: Mon, 18 Apr 2022 21:27:17 -0400 Subject: [PATCH] Just Capped decode and encode for consistensy --- CTng/.vscode/settings.json | 3 +++ CTng/GZip/Decode.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 CTng/.vscode/settings.json diff --git a/CTng/.vscode/settings.json b/CTng/.vscode/settings.json new file mode 100644 index 0000000..a460645 --- /dev/null +++ b/CTng/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "go.inferGopath": false +} \ No newline at end of file diff --git a/CTng/GZip/Decode.go b/CTng/GZip/Decode.go index ae7fbfe..00c138b 100644 --- a/CTng/GZip/Decode.go +++ b/CTng/GZip/Decode.go @@ -40,11 +40,11 @@ func main() { // Try to decode it op := "decode" - result, err := decode(text) + result, err := Decode(text) if err != nil { // The only option left is to encode it! op = "encode" - result, err = encode(text) + result, err = Encode(text) if err != nil { fmt.Println("Completely failed to do anything useful with that input") return