()
| 133 | } |
| 134 | |
| 135 | func (s *Stack) String() string { |
| 136 | var b strings.Builder |
| 137 | |
| 138 | w := &indentWriter{w: &b} |
| 139 | |
| 140 | w.WriteLine(s.id) |
| 141 | w.Push() |
| 142 | |
| 143 | writeStepItems(w, s.Initialize) |
| 144 | writeStepItems(w, s.Serialize) |
| 145 | writeStepItems(w, s.Build) |
| 146 | writeStepItems(w, s.Finalize) |
| 147 | writeStepItems(w, s.Deserialize) |
| 148 | |
| 149 | return b.String() |
| 150 | } |
| 151 | |
| 152 | type stackStepper interface { |
| 153 | ID() string |