diff --git a/structs/demo1.go b/structs/demo1.go index 54a70af..76b6777 100644 --- a/structs/demo1.go +++ b/structs/demo1.go @@ -3,11 +3,12 @@ package structs import "fmt" func Demo1() { - fmt.Println(product{"Computer", 5000, "XYZ"}) + fmt.Println(product{"Computer", 5000, "XYZ", 20}) } type product struct { name string unitPrice float64 brand string + discountRate int } \ No newline at end of file