一直不满意的 go 的按行分隔字符串的实现,strings.Split(s, "\n"),因为1. 不能处理 \r2. "\n" 而不是 '\n' 导致效率不够高3. 不是 append 风格,做不到 0-allocs本来打算自己写一个,结果和chatgpt聊了几句,居然也写出来,https://chatgpt.com/share/41218489-da1e-4a06-b276-3dcfdd42097f