Explain the use of Go's encoding packages for data encoding and decoding?