You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed in a few local code bases here frequent use of a pattern along the lines of:
varf os.Filef.Write([]byte("# do not edit\n"))
and wonder if in some (not all) circumstances we can determine if these strings either as constants or by use are essentially human readable in which case we could have:
varf os.Filef.WriteString("# do not edit\n")
(Internally WriteString uses unsafe to avoid allocation and copy)
The text was updated successfully, but these errors were encountered:
I noticed in a few local code bases here frequent use of a pattern along the lines of:
and wonder if in some (not all) circumstances we can determine if these strings either as constants or by use are essentially human readable in which case we could have:
(Internally WriteString uses unsafe to avoid allocation and copy)
The text was updated successfully, but these errors were encountered: