MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewIssue

Function NewIssue

cmd/gosqlx/cmd/analysis_types.go:125–133  ·  view source on GitHub ↗

NewIssue creates a new issue builder

(id string, category IssueCategory, severity IssueSeverity)

Source from the content-addressed store, hash-verified

123
124// NewIssue creates a new issue builder
125func NewIssue(id string, category IssueCategory, severity IssueSeverity) *IssueBuilder {
126 return &IssueBuilder{
127 issue: AnalysisIssue{
128 ID: id,
129 Category: category,
130 Severity: severity,
131 },
132 }
133}
134
135// WithTitle sets the issue title
136func (b *IssueBuilder) WithTitle(title string) *IssueBuilder {

Calls

no outgoing calls