MCPcopy Create free account
hub / github.com/openclaw/gogcli / ruleKeyForValidation

Function ruleKeyForValidation

internal/sheetsvalidation/copy.go:738–749  ·  view source on GitHub ↗
(rule *sheets.DataValidationRule)

Source from the content-addressed store, hash-verified

736}
737
738func ruleKeyForValidation(rule *sheets.DataValidationRule) (string, error) {
739 if rule == nil || rule.Condition == nil {
740 return "", nil
741 }
742
743 encoded, err := json.Marshal(rule)
744 if err != nil {
745 return "", fmt.Errorf("encode validation rule: %w", err)
746 }
747
748 return string(encoded), nil
749}
750
751func EffectiveCopyDestination(source, destination *sheets.GridRange, transpose bool) *sheets.GridRange {
752 if source == nil || destination == nil {

Callers 2

buildCopySegmentsFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected