to print parameters default value

This commit is contained in:
Mert Gör ☭ 2024-01-20 14:53:20 +03:00
parent 9c1a8d8e99
commit 06174644a1
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
1 changed files with 1 additions and 1 deletions

View File

@ -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 {