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.
|
- package main
-
- import "github.com/imosed/signet/data"
-
- func SumContributions(contributions []data.Contribution) (sum float64) {
- total := 0.0
- for _, contribution := range contributions {
- total += contribution.Amount
- }
- return total
- }
|