Created
November 22, 2019 06:42
-
-
Save Mayankgupta688/9f5bc05b1bc13d71491e3217535a8e81 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
type Employee struct { | |
Name string | |
Age int | |
Designation string | |
Salary int | |
} | |
func (emp Employee) ShowDetails() { | |
fmt.Println("User Name: ", emp.Name) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment