nettools/config/net.go

13 lines
301 B
Go
Raw Normal View History

2024-11-12 08:10:09 +00:00
package config
2024-11-12 08:59:34 +00:00
import common_utils "git.mic.pp.ua/anderson/nettools/common"
2024-11-12 08:10:09 +00:00
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)
}