(info SessionRecord, now func() time.Time)
| 751 | } |
| 752 | |
| 753 | func sessionBundle(info SessionRecord, now func() time.Time) outputBundle { |
| 754 | return outputBundle{ |
| 755 | jsonValue: info, |
| 756 | human: func() (string, error) { return renderSessionHuman(info, now) }, |
| 757 | toon: func() (string, error) { return renderSessionToon(info) }, |
| 758 | } |
| 759 | } |
| 760 | |
| 761 | func renderSessionHuman(info SessionRecord, now func() time.Time) (string, error) { |
| 762 | base := renderHumanSection(sessionSessionValue, []keyValue{ |