MCPcopy
hub / github.com/wavetermdev/waveterm / FindStringInSlice

Function FindStringInSlice

pkg/util/utilfn/utilfn.go:929–936  ·  view source on GitHub ↗
(slice []string, val string)

Source from the content-addressed store, hash-verified

927}
928
929func FindStringInSlice(slice []string, val string) int {
930 for idx, v := range slice {
931 if v == val {
932 return idx
933 }
934 }
935 return -1
936}
937
938func FormatLsTime(t time.Time) string {
939 now := time.Now()

Callers 1

DeleteTabFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected