The backend for the project formerly known as signet, now known as beignet.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 line
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. }