String returns the string representation of the cap section.
()
| 29 | |
| 30 | // String returns the string representation of the cap section. |
| 31 | func (s Section) String() string { |
| 32 | return fmt.Sprintf("type: %s, version: %d, len: %d, size: %d", s.Type(), s.Version(), s.Len(), s.Size()) |
| 33 | } |
| 34 | |
| 35 | // New builds a new section block with the specified type, version, optional length and size. |
| 36 | func New(typ Type, ver capver.Version, l, size uint32) Section { |