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.

пре 2 година
1234567891011
  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. }