package reply import("fmt";"strings") type Facts struct { TXID string; RequestedSat,RecipientSat,ChangeSat int64; Network string } func Native(f Facts)string {return fmt.Sprintf("Bitcoin Engine accepted a %s send request for %d sats. Recipient output: %d sats. Change: %d sats. TXID: %s. Confirmation has not been verified.",strings.ToUpper(f.Network),f.RequestedSat,f.RecipientSat,f.ChangeSat,f.TXID)} // A model may supply an optional greeting; trusted amounts and TXID always come from Go. func WithGreeting(f Facts,greeting string)string {greeting=strings.TrimSpace(greeting);if len(greeting)>120{greeting=""};if greeting==""{return Native(f)};return greeting+"\n\n"+Native(f)}