MCPcopy Create free account
hub / github.com/blues/note / isNoteInNoteArray

Function isNoteInNoteArray

lib/notebox.go:60–67  ·  view source on GitHub ↗

See if a string is in a string array

(val string, array []string)

Source from the content-addressed store, hash-verified

58
59// See if a string is in a string array
60func isNoteInNoteArray(val string, array []string) bool {
61 for i := range array {
62 if array[i] == val {
63 return true
64 }
65 }
66 return false
67}
68
69// compositeNoteID creates a valid Note ID from the required components
70func compositeNoteID(endpoint string, notefile string) string {

Callers 1

MergeNoteboxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected