The backend for the project formerly known as signet, now known as beignet.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

helpers.go 237 B

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