Maint: refactor internal/routing
- Split Go files better - Reduce public API for exported errors
This commit is contained in:
11
internal/routing/errors.go
Normal file
11
internal/routing/errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package routing
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrLinkByIndex = errors.New("cannot obtain link by index")
|
||||
ErrLinkDefaultNotFound = errors.New("default link not found")
|
||||
ErrRoutesList = errors.New("cannot list routes")
|
||||
)
|
||||
Reference in New Issue
Block a user