nex-go/sum.go

10 lines
127 B
Go

package nex
func sum(slice []byte) int {
total := 0
for _, value := range slice {
total += int(value)
}
return total
}