package main

import "fmt"

type Item struct {
	Name  string
	Score int
}

func main() {
	items := []Item{
		{Name: "alpha", Score: 8},
		{Name: "beta", Score: 13},
		{Name: "gamma", Score: 5},
	}

	total := 0
	for _, item := range items {
		total += item.Score
	}

	fmt.Printf("items=%d total=%d\n", len(items), total)
}
