Skip to content

Commit

Permalink
make stringprefix private to be less confusing in completions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdevr committed Jan 25, 2024
1 parent d27912f commit 1d92cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cisco/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func parseSection(lines []string, minIndent int) ([]ConfLine, int, error) {
return result, idx, nil
}

func (c *ConfLine) StringPrefix(prefix string) string {
func (c *ConfLine) stringPrefix(prefix string) string {
if c == nil {
return ""
}
Expand All @@ -136,14 +136,14 @@ func (c *ConfLine) StringPrefix(prefix string) string {
if c.Line == "" {
newPrefix = ""
}
result += sl.StringPrefix(newPrefix)
result += sl.stringPrefix(newPrefix)
}

return result
}

func (c *ConfLine) String() string {
return strings.TrimSuffix(c.StringPrefix(""), "\n")
return strings.TrimSuffix(c.stringPrefix(""), "\n")
}

// Apply applies a configlet to a router config and returns the result.
Expand Down

0 comments on commit 1d92cf8

Please sign in to comment.