MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / Contains

Function Contains

internal/utils/helpers.go:21–28  ·  view source on GitHub ↗

https://stackoverflow.com/a/70802740/15807350

(s []T, e T)

Source from the content-addressed store, hash-verified

19
20// https://stackoverflow.com/a/70802740/15807350
21func Contains[T comparable](s []T, e T) bool {
22 for _, v := range s {
23 if v == e {
24 return true
25 }
26 }
27 return false
28}
29
30// IsClientDisconnectError checks if the error is due to client disconnecting
31// e.g. user seeking in video, stopping playback, or network issues on client side

Callers 2

startFunction · 0.92
sendLinkFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected