updated
This commit is contained in:
parent
6514c53747
commit
60e4f7a88d
1 changed files with 5 additions and 0 deletions
|
@ -12,7 +12,12 @@ func (c customer) save() {
|
||||||
fmt.Println("Has been added : ", c.firstName, c.lastName,c.age)
|
fmt.Println("Has been added : ", c.firstName, c.lastName,c.age)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c customer) update() {
|
||||||
|
fmt.Println("Updated : ", c.firstName, c.lastName, c.age)
|
||||||
|
}
|
||||||
|
|
||||||
func Demo2() {
|
func Demo2() {
|
||||||
c:= customer{firstName: "Engin", lastName: "Demiroğ", age: 35}
|
c:= customer{firstName: "Engin", lastName: "Demiroğ", age: 35}
|
||||||
c.save()
|
c.save()
|
||||||
|
c.update()
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue