From 06174644a1fbef623006ecfa0c0cc7f7f4ae5bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sat, 20 Jan 2024 14:53:20 +0300 Subject: [PATCH] to print parameters default value --- structs/demo1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/demo1.go b/structs/demo1.go index 76b6777..0675115 100644 --- a/structs/demo1.go +++ b/structs/demo1.go @@ -3,7 +3,7 @@ package structs import "fmt" func Demo1() { - fmt.Println(product{"Computer", 5000, "XYZ", 20}) + fmt.Println(product{name:"Computer", unitPrice: 5000, brand: "XYZ", discountRate: 20}) } type product struct {