Add detailed godoc documentation to CLIEntry function

Expand the documentation comment for CLIEntry to provide more context
about what the function does, including its use of the fx dependency
injection framework, signal handling, and blocking behavior.
This commit is contained in:
2025-12-27 12:24:22 +07:00
parent 8323a95be9
commit e1d0ab5ea6
10 changed files with 110 additions and 29 deletions

View File

@@ -6,7 +6,9 @@ import (
"time"
)
// ASPath represents an AS path that may contain nested AS sets
// ASPath represents a BGP AS path as a slice of AS numbers.
// It handles JSON unmarshaling of both simple arrays and nested AS sets,
// flattening any nested structures into a single sequence of AS numbers.
type ASPath []int
// UnmarshalJSON implements custom JSON unmarshaling to flatten nested arrays