github.com/mundipagg/boleto-api@v0.0.0-20230620145841-3f9ec742599f/bb/response.go (about) 1 package bb 2 3 const registerBoletoResponseBB = `{ 4 {{if (hasErrorTags . "errorCode")}} 5 "Errors": [ 6 { 7 "Code": "{{trim .errorCode}}", 8 "Message": "{{trim .errorMessage}}" 9 } 10 ] 11 {{else}} 12 "DigitableLine": "{{fmtDigitableLine (trim .digitableLine)}}", 13 "BarCodeNumber": "{{trim .barcodeNumber}}" 14 {{end}} 15 } 16 ` 17 18 func getAPIResponse() string { 19 return registerBoletoResponseBB 20 }