update: item interface discount ratio, add input name

This commit is contained in:
Inanc Gumus
2019-09-27 11:31:46 +03:00
parent 4dbfec8cec
commit 3f653e7209
9 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@ import "fmt"
type item interface {
print()
discount(float64)
discount(ratio float64)
}
type list []item