package textextraction 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 }