MCPcopy Index your code
hub / github.com/dnote/dnote / isReservedName

Function isReservedName

pkg/cli/validate/books.go:42–50  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

40var ErrBookNameMultiline = errors.New("The book name contains multiple lines")
41
42func isReservedName(name string) bool {
43 for _, n := range reservedBookNames {
44 if name == n {
45 return true
46 }
47 }
48
49 return false
50}
51
52// BookName validates a book name
53func BookName(name string) error {

Callers 1

BookNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected