| 1 | package sarifscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ |
| 2 | |
| 3 | // Replacement ... |
| 4 | type Replacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement# struct { |
| 5 | PropertyBagscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#PropertyBag. |
| 6 | DeletedRegionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#DeletedRegion. Regionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Region# `json:"deletedRegion"` |
| 7 | InsertedContentscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#InsertedContent. *ArtifactContentscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ArtifactContent# `json:"insertedContent,omitempty"` |
| 8 | } |
| 9 | |
| 10 | // NewReplacement ... |
| 11 | func NewReplacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/NewReplacement().(region *Regionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Region#) *Replacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement# { |
| 12 | return &Replacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#{ |
| 13 | DeletedRegionscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#DeletedRegion.: *region, |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // WithInsertedContent ... |
| 18 | func (r *Replacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#) WithInsertedContentscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#WithInsertedContent().(artifactContent *ArtifactContentscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/ArtifactContent#) *Replacementscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement# { |
| 19 | r.InsertedContentscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/sarif`/Replacement#InsertedContent. = artifactContent |
| 20 | return r |
| 21 | } |