add: money type to interfaces
This commit is contained in:
@ -15,5 +15,5 @@ type book struct {
|
||||
}
|
||||
|
||||
func (b book) print() {
|
||||
fmt.Printf("%-15s: $%.2f \n", b.title, b.price)
|
||||
fmt.Printf("%-15s: $%.2f\n", b.title, b.price)
|
||||
}
|
||||
|
Reference in New Issue
Block a user