ToSlice returns a defensive copy of the accumulated filter strings.
()
| 79 | |
| 80 | // ToSlice returns a defensive copy of the accumulated filter strings. |
| 81 | func (s *ToolSet) ToSlice() []string { |
| 82 | out := make([]string, len(s.items)) |
| 83 | copy(out, s.items) |
| 84 | return out |
| 85 | } |
| 86 | |
| 87 | func validateToolName(kind, name string) { |
| 88 | if name == "" { |
no outgoing calls