Example: you have array of maps, and you need add extra fields to each element of array.
This may cause an issue, if maps are big enough.
After extending each map result array ([]byte) may reach out of range and you will lost some number of symbols in result.
Code example: https://play.golang.org/p/3QcQtupAfIr
p.s. Update data by slice(referencing) is not obvious.
Example: you have array of maps, and you need add extra fields to each element of array.
This may cause an issue, if maps are big enough.
After extending each map result array ([]byte) may reach out of range and you will lost some number of symbols in result.
Code example: https://play.golang.org/p/3QcQtupAfIr
p.s. Update data by slice(referencing) is not obvious.