I'll try to clear up my question.
myJSON is a simple JSON string.
len(myJSON)
= 78
e is json.Marshal(myJSON)
From what I understand, e is now a []byte
Then I gzip e like this:
var buf bytes.Buffer
gz := gzip.NewWriter(&buf)
gz.Write(e)
gz.Close()
And buf.Len()
= 96
So... why is my compressed buffer bigger than the original non-compressed string?
Edit: It's hilarious the trolls that down vote a question when someone is trying to understand WHY something is happening. Guess I should just blindly accept it and not ask.