Adding Stringer interface to Objects

This commit is contained in:
Christopher Herrera 2014-09-21 16:55:44 -04:00
parent 1a028dc2b9
commit dfb6722dfd

View file

@ -193,6 +193,7 @@ func (mr MovieResult) String() string {
return fmt.Sprintf("#%s: %s (%s)", mr.ImdbID, mr.Title, mr.Year)
}
//Stringer Interface for SearchResult
func (sr SearchResult) String() string {
return fmt.Sprintf("#%s: %s (%s) Type: %s", sr.ImdbId, sr.Title, sr.Year, sr.Type)
}