Dump prints out information about the Source
(out io.Writer, indent int)
| 27 | |
| 28 | // Dump prints out information about the Source |
| 29 | func (s *Source) Dump(out io.Writer, indent int) { |
| 30 | |
| 31 | fmt.Fprintf(out, "%sSource id:%s name:%s\n", sIndent(indent), s.Id, s.Name) |
| 32 | ind := indent + step |
| 33 | switch at := s.ArrayElement.(type) { |
| 34 | case *FloatArray: |
| 35 | at.Dump(out, ind) |
| 36 | case *NameArray: |
| 37 | at.Dump(out, ind) |
| 38 | } |
| 39 | fmt.Fprintf(out, "%sTechniqueCommon\n", sIndent(ind)) |
| 40 | s.TechniqueCommon.Accessor.Dump(out, ind+3) |
| 41 | } |
| 42 | |
| 43 | // |
| 44 | // NameArray |