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 7package strconv 8 9import "internal/bytealg" 10 11// index returns the index of the first instance of c in s, or -1 if missing. 12func index(s string, c byte) int { 13 return bytealg.IndexByteString(s, c) 14} 15