package cybersecurity // ThreatResult is a sum type for SQL injection detection results. type ThreatResult interface{ threatResult() } // Clean indicates no threat was detected. type Clean struct{} // Suspicious indicates a possible threat with a reason. type Suspicious struct { Reason string } // Malicious indicates a confirmed threat pattern. type Malicious struct { Pattern string } func (Clean) threatResult() {} func (Suspicious) threatResult() {} func (Malicious) threatResult() {}