Skip to content

Instantly share code, notes, and snippets.

@chris001177
Created August 15, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris001177/880ab88ce2946994cfc158b998d68b6a to your computer and use it in GitHub Desktop.
Save chris001177/880ab88ce2946994cfc158b998d68b6a to your computer and use it in GitHub Desktop.
func main() {
emp1 := Emp{"E-1", "Anupam", "Raj", 20}
emp2 := Emp{"E-2", "Rahul", "Anand", 30}
createEmp(emp1)
fmt.Println(getEmps())
createEmp(emp2)
fmt.Println(getEmps())
emp3 := Emp{"E-1", "Rahul", "Anand", 30}
updateEmp(emp3)
fmt.Println(getEmps())
deleteEmp("E-2")
fmt.Println(getEmps())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment