Goスライスslices.Index
slices.Contains

slices.Indexスライス

slices.Reverse

vが最初に現れるインデックスを返します。なければ-1。(Go 1.21+)

문법

slices.Index(s []E, v E) int