func (b Bradesco) Transference(d Document) {
}
Transference Return the transference file (arquivo de remessa)
package boleto
import (
	"html/template"
	"net/http"
	"fmt"
	"strconv"
)
type Bradesco struct {
	Agency                int
	Account               int
	Carteira              int
	Company               Company
}
var configBradesco = bankConfig{
	Id:           237,
	Aceite:       "N",
	Currency:     9,
	CurrencyName: "R$",
	AgencyMaxSize: 4,
	AccountMaxSize: 7,
}
func (b Bradesco) Barcode(d Document) Barcode {
	var bn string
	bn += fmt.Sprintf("%0"+strconv.Itoa(configBradesco.AgencyMaxSize)+"d", b.Agency)
	bn += strconv.Itoa(b.Carteira)
	bn += fmt.Sprintf("%011d", d.OurNumber)
	bn += fmt.Sprintf("%0"+strconv.Itoa(configBradesco.AccountMaxSize)+"d", b.Account)
	var n Barcode = &BarcodeNumber{
		BankId:        configBradesco.Id,
		CurrencyId:    configBradesco.Currency,
		DateDueFactor: dateDueFactor(d.DateDue),
		Value:         d.Value,
		BankNumbers:   fmt.Sprintf("%0"+strconv.Itoa(bankNumbersSize)+"s", bn),
	}
	n.verification()
	return n
}