mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
10 lines
127 B
Go
10 lines
127 B
Go
package nex
|
|
|
|
func sum(slice []byte) int {
|
|
total := 0
|
|
for _, value := range slice {
|
|
total += int(value)
|
|
}
|
|
|
|
return total
|
|
}
|