proposal: Go 2: bytes: remove NewBufferString #26281
Labels
Go2Cleanup
Used by Ian and Robert for Go 2 organization. Unless you’re Ian or Robert, please do not use this.
Proposal
v2
A language change or incompatible library change
Milestone
The constructor is often misused and confuses people. It can be used to put initial contents into a buffer that will be written into after, but so can buf.Write. Meanwhile, NewReader handles the case that most beginners misuse, calling NewBufferString when they only need NewBuffer.
This function's use case is not worth the confusion it causes and it should be deleted from the library.
The text was updated successfully, but these errors were encountered: