(s *format.Subsection)
| 110 | } |
| 111 | |
| 112 | func (m *Submodule) unmarshal(s *format.Subsection) { |
| 113 | m.raw = s |
| 114 | |
| 115 | m.Name = m.raw.Name |
| 116 | m.Path = m.raw.Option(pathKey) |
| 117 | m.URL = m.raw.Option(urlKey) |
| 118 | m.Branch = m.raw.Option(branchKey) |
| 119 | } |
| 120 | |
| 121 | func (m *Submodule) marshal() *format.Subsection { |
| 122 | if m.raw == nil { |
no test coverage detected