lc-go/solutions/0/q28/solution.go

10 lines
262 B
Go

// Package q28 implements a solution for https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/
package q28
import "strings"
func strStr(haystack string, needle string) int {
return strings.Index(haystack, needle)
}
var _ = strStr