Pretty print a step.
()
| 41 | |
| 42 | // Pretty print a step. |
| 43 | func (s Step) String() string { |
| 44 | // Convert the Step struct to JSON |
| 45 | jsonStr, err := json.MarshalIndent(s, "", " ") |
| 46 | if err != nil { |
| 47 | return fmt.Sprintf("Error converting to JSON: %v", err) |
| 48 | } |
| 49 | return string(jsonStr) |
| 50 | } |
no outgoing calls