5b7160fe44
Job Collector * createstructure * mostupdatevalidation * repocollectorupdate * updateoutline * updatevalidation * scriptupdate * cleanupdockerignore * update * collectorupdateapi
19 lines
253 B
Go
19 lines
253 B
Go
package documentclean
|
|
|
|
import "errors"
|
|
|
|
type Service struct {
|
|
}
|
|
|
|
func New() *Service {
|
|
return &Service{}
|
|
}
|
|
|
|
func (s *Service) IsValidVersion(v int32) error {
|
|
if v <= 0 {
|
|
return errors.New("document clean code version must be > 0")
|
|
}
|
|
|
|
return nil
|
|
}
|