mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
* WIP: feat: Update templates also updates parameters * Insert params for template version update * Working implementation of inherited params * Add "--always-prompt" flag and logging info
11 lines
165 B
Go
11 lines
165 B
Go
package slice
|
|
|
|
func Contains[T comparable](haystack []T, needle T) bool {
|
|
for _, hay := range haystack {
|
|
if needle == hay {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|