Proper way to release string for garbage collection after slicing
问题 According to this Go Data Structures article, under the Strings section it states that taking a slice of a string will keep the original string in memory. "(As an aside, there is a well-known gotcha in Java and other languages that when you slice a string to save a small piece, the reference to the original keeps the entire original string in memory even though only a small amount is still needed. Go has this gotcha too. The alternative, which we tried and rejected, is to make string slicing