package scoring

import "fmt"

// An entry represents a path and a score.
type Entry struct {
	Path  string
	Score *Score
}

// Update the score for an entry.
func (e *Entry) UpdateScore() {
	e.Score.Update()
}

// Calculates the score for an entry.
func (e *Entry) CalculateScore() float64 {
	return e.Score.Calculate()
}

func (e *Entry) String() string {
	return fmt.Sprintf("{%s %s}", e.Path, e.Score)
}

// Create a new entry with the specified path. The score is created with
// NewScore.
func NewEntry(path string) *Entry {
	return &Entry{path, NewScore()}
}

package scoring

// An entry represents a path and a score.
type Entry struct {
	Path  string
	Score *Score
}

// Update the score for an entry.
func (e *Entry) UpdateScore() {
	e.Score.Update()
}

// Calculates the score for an entry.
func (e *Entry) CalculateScore() float64 {
	return e.Score.Calculate()
}

// Create a new entry with the specified path. The score is created with
// NewScore.
func NewEntry(path string) *Entry {
	return &Entry{path, NewScore()}
}

--- 
+++ 
@@ -1,4 +1,6 @@
 package scoring
+
+import "fmt"
 
 // An entry represents a path and a score.
 type Entry struct {
@@ -16,6 +18,10 @@
 	return e.Score.Calculate()
 }
 
+func (e *Entry) String() string {
+	return fmt.Sprintf("{%s %s}", e.Path, e.Score)
+}
+
 // Create a new entry with the specified path. The score is created with
 // NewScore.
 func NewEntry(path string) *Entry {
Add a Entry.String method for debugging

println ftw.
