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:
Harrison (Harry) Cramer
2023-08-31 21:36:40 -04:00
committed by GitHub
parent d92cf39dd7
commit 152c55fd57
14 changed files with 417 additions and 238 deletions

10
cmd/utils.go Normal file
View 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
}