The backend for the project formerly known as signet, now known as beignet.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12 rindas
237 B

  1. package main
  2. import "github.com/imosed/signet/data"
  3. func SumContributions(contributions []data.Contribution) (sum float64) {
  4. total := 0.0
  5. for _, contribution := range contributions {
  6. total += contribution.Amount
  7. }
  8. return total
  9. }