update: interfaces
This commit is contained in:
@@ -15,6 +15,5 @@ type book struct {
|
||||
}
|
||||
|
||||
func (b book) print() {
|
||||
// b is a copy of the original `book` value here.
|
||||
fmt.Printf("%-15s: $%.2f \n", b.title, b.price)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user