Created
November 21, 2019 09:24
-
-
Save Mayankgupta688/e8e810149085c4c12d999d969c3a8ff3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func UpdateEmployee(empDetials *Employee) { | |
empDetails.Name = "Anshul"; | |
} | |
var newEmployee = Employee{Name: "Mayank", Age: 40, Designation: "Developer"} | |
UpdateEmployee(&newEmployee) | |
// The original Object sent to the function Updated... | |
fmt.Println(newEmployee.Name) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment