GoStringstrings.Index

Returns the index of the first instance of substr in s, or -1.

문법

strings.Index(s, substr string) int