package architecture import "fmt" type Observation struct { Known bool InMempool bool Confirmations int } func Describe(o Observation) string { if !o.Known || o.Confirmations < 0 { return "Unknown outcome" } if o.Confirmations > 0 { return fmt.Sprintf("Observed confirmations: %d", o.Confirmations) } if o.InMempool { return "Seen in mempool; not confirmed" } return "No current confirmation evidence" }