nettools/config/net.go
2024-11-12 09:10:09 +01:00

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)
}