Method
AppendComponents
(id, group, name, version, language string, license []string)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | func (doc *DsdxDocument) AppendComponents(id, group, name, version, language string, license []string) { |
| 57 | if id == "" { |
| 58 | id = fmt.Sprintf("DSDX-%s-%s-%s", group, name, version) |
| 59 | } |
| 60 | doc.Components = append(doc.Components, DsdxComponent{ |
| 61 | ID: id, |
| 62 | Group: group, |
| 63 | Name: name, |
| 64 | Version: version, |
| 65 | Language: language, |
| 66 | License: license, |
| 67 | }) |
| 68 | } |
| 69 | |
| 70 | func (doc *DsdxDocument) AppendDependencies(parentId string, childrenIds []string) { |
| 71 | if doc.Dependencies == nil { |
Tested by
no test coverage detected