]> Cypherpunks repositories - gostls13.git/commit
internal/trace/raw: use strings.Cut instead of strings.SplitN 2
author1911860538 <alxps1911@gmail.com>
Thu, 4 Sep 2025 12:30:51 +0000 (12:30 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 10 Sep 2025 20:06:00 +0000 (13:06 -0700)
commit5cf8ca42e3665c045ccd441d382a72714f90d9bd
tree470e4da0e3ff476ab54ac690a801fbd896775f86
parent80a2aae922fa64f0d37b1fc81812d2ef95c0b4e6
internal/trace/raw: use strings.Cut instead of strings.SplitN 2

Replace strings.SplitN with strings.Cut for better performance and readability.

Change-Id: Ia245db62d8c2d1686887cb455f492db15606b57a
GitHub-Last-Rev: e00e164688f79d85d34fdf0d4ef126387ec6c0a0
GitHub-Pull-Request: golang/go#75257
Reviewed-on: https://go-review.googlesource.com/c/go/+/700915
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/internal/trace/raw/textreader.go