github.com/gidoBOSSftw5731/go/src@v0.0.0-20210226122457-d24b0edbf019/strconv/bytealg.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !compiler_bootstrap 6 // +build !compiler_bootstrap 7 8 package strconv 9 10 import "internal/bytealg" 11 12 // contains reports whether the string contains the byte c. 13 func contains(s string, c byte) bool { 14 return bytealg.IndexByteString(s, c) != -1 15 }