Feat: Notes (Non-Linked Comments) (#52)
Adds support for notes. These are comments that are not linked to specific lines of code in the MR.
This commit is contained in:
committed by
GitHub
parent
d92cf39dd7
commit
152c55fd57
10
cmd/utils.go
Normal file
10
cmd/utils.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
func Contains[T comparable](elems []T, v T) int {
|
||||
for i, s := range elems {
|
||||
if v == s {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
Reference in New Issue
Block a user