13 lines
278 B
Go
13 lines
278 B
Go
package config
|
|
|
|
import common_utils "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)
|
|
}
|