...

/

Challenge: Implement the Stringer Interface

Challenge: Implement the Stringer Interface

Test the concepts we learned with a coding exercise.

Problem statement

We have learned that the fmt package from the standard library defines the Stringer interface as follows:

type Stringer interface {
String() string
}

For this challenge, you need to complete the code below such that the type Item ...