Renaming rampage

Addressing the comments in #591, router.String() now returns "default"

Furthermore, a tonne of other renaming has been included in this commit
as a result of running go vet ./... inside the router package.
This commit is contained in:
Milos Gajdos
2019-07-17 00:06:11 +01:00
parent 92495d22db
commit 2803146673
4 changed files with 21 additions and 27 deletions

View File

@@ -29,10 +29,10 @@ type Table interface {
Size() int
}
// TableOption used by the routing table
type TableOption func(*TableOptions)
// Option used by the routing table
type Option func(*Options)
// NewTable creates new routing table and returns it
func NewTable(opts ...TableOption) Table {
func NewTable(opts ...Option) Table {
return newTable(opts...)
}