package price import "testing" func TestGetFinalAmount(t *testing.T) { p := &Price{Amount: 11, Discount: 0.7} v := p.GetFinalAmount() t.Log(v) }