]> Cypherpunks.ru repositories - gostls13.git/commit
internal/bytealg: add generic LastIndexByte{,String}
authorTobias Klauser <tklauser@distanz.ch>
Thu, 24 Aug 2023 13:10:39 +0000 (15:10 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 25 Aug 2023 15:08:28 +0000 (15:08 +0000)
commit890a62bf1b8022833d3cb616d3d7911b7f1d289a
tree342cf7087e823193b0092689329eb50ba43647ab
parent43559aa9a5a550ba7dac224a174130e42f93de99
internal/bytealg: add generic LastIndexByte{,String}

To avoid duplicating them in net/netip and os and to allow these
packages automatically benefiting from future performance improvements
when optimized native LastIndexByte{,String} implementations are added.

For #36891

Change-Id: I4905a4742273570c2c36b867df57762c5bfbe1e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/522475
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/bytes/bytes.go
src/internal/bytealg/lastindexbyte_generic.go [new file with mode: 0644]
src/net/netip/leaf_alts.go
src/net/netip/netip.go
src/os/file_plan9.go
src/os/tempfile.go
src/strings/strings.go