MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / DeleteStringAt

Method DeleteStringAt

internal/app/notes.go:540–546  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

538}
539
540func (b *Board) DeleteStringAt(i int) bool {
541 if i < 0 || i >= len(b.Strings) {
542 return false
543 }
544 b.Strings = append(b.Strings[:i], b.Strings[i+1:]...)
545 return true
546}
547
548func (b *Board) DeleteStringsTouching(id string) int {
549 kept := b.Strings[:0]

Callers 1

handleBoardKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected