13 lines
301 B
Go
13 lines
301 B
Go
package config
|
|
|
|
import common_utils "git.mic.pp.ua/anderson/nettools/common"
|
|
|
|
type FileRange[T common_utils.Num] struct {
|
|
Begin T `json:"begin" yaml:"begin"`
|
|
End T `json:"end" yaml:"end"`
|
|
}
|
|
|
|
func (r *FileRange[T]) Process() common_utils.IRange[T] {
|
|
return common_utils.NewRange(r.Begin, r.End)
|
|
}
|