func (plan Plan) Validate() error {
	if plan.Site == nil {
		return errors.NotValidf("nil Site")
	}
	if plan.Work == nil {
		return errors.NotValidf("nil Work")
	}
	for i, w := range plan.Init {
		if w == nil {
			return errors.NotValidf("nil Init item %d", i)
		}
	}
	return nil
}
// Validate returns an error if the plan cannot be used. It doesn't check for
// reused catacombs: plan validity is necessary but not sufficient to determine
// that an Invoke will succeed.
Validate returns an error if the plan cannot be used. It doesn't check for
reused catacombs: plan validity is necessary but not sufficient to determine
that an Invoke will succeed.
// Validate returns an error if the plan cannot be used . It doesn ' t check for // reused catacombs : plan validity is necessary but not sufficient to determine // that an Invoke will succeed .
func (plan Plan) Validate() error {
	if plan.Site == nil {
		return errors.NotValidf("nil Site")
	}
	if plan.Work == nil {
		return errors.NotValidf("nil Work")
	}
	for i, w := range plan.Init {
		if w == nil {
			return errors.NotValidf("nil Init item %d", i)
		}
	}
	return nil
}
func ( plan Plan ) Validate ( ) error { if plan . Site == nil { return errors . NotValidf ( " " ) } if plan . Work == nil { return errors . NotValidf ( " " ) } for i , w := range plan . Init { if w == nil { return errors . NotValidf ( " " , i ) } } return nil }
Validate returns an error if the plan cannot be used.
Validate returns an error if the plan cannot be used .