Added method NextRouteCode to feragstring - returns the next autoincrement route code.
This commit is contained in:
parent
91e88f42c4
commit
0eebc491d4
1 changed files with 4 additions and 0 deletions
4
ferag.go
4
ferag.go
|
@ -77,6 +77,10 @@ func (fs *FeragString) AddRouteListEntry(rl *RouteListEntry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (fs *FeragString) NextRouteCode() int {
|
||||
return fs.RouteListEntryCount + 1
|
||||
}
|
||||
|
||||
func (fs *FeragString) AddRouteInfo(ri *RouteInfo) error {
|
||||
fs.RouteInfoEntries = append(fs.RouteInfoEntries, ri)
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue