MCPcopy
hub / github.com/lxn/walk / Remove

Method Remove

widgetlist.go:129–136  ·  view source on GitHub ↗
(item Widget)

Source from the content-addressed store, hash-verified

127}
128
129func (l *WidgetList) Remove(item Widget) error {
130 index := l.Index(item)
131 if index == -1 {
132 return nil
133 }
134
135 return l.RemoveAt(index)
136}
137
138func (l *WidgetList) RemoveAt(index int) error {
139 item := l.items[index]

Callers 1

SetParentMethod · 0.95

Calls 2

IndexMethod · 0.95
RemoveAtMethod · 0.95

Tested by

no test coverage detected