]> Cypherpunks repositories - gostls13.git/commit
bytes: add ContainsAny
authorRob Pike <r@golang.org>
Tue, 5 Apr 2016 22:43:07 +0000 (15:43 -0700)
committerRob Pike <r@golang.org>
Wed, 6 Apr 2016 21:17:08 +0000 (21:17 +0000)
commitd636d7907c46b728b07b58669ec1fa1158105579
tree77ad96687ad52e4422d26adf5ddabe2e4bd0eec8
parent0c81248bf46f611b56e3ab38b4d83e449b3c8636
bytes: add ContainsAny

This function is present in the strings package but missing from bytes,
and we would like to keep the two packages consistent.

Add it to bytes, and copy the test over as well.

Fixes #15140

Change-Id: I5dbd28da83a9fe741885794ed15f2af2f826cb3c
Reviewed-on: https://go-review.googlesource.com/21562
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/bytes/bytes.go
src/bytes/bytes_test.go