Created
November 21, 2019 07:21
-
-
Save Mayankgupta688/fd546fbb214e8c36e64f3f68415b9384 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 | |
} | |
var newEmployee = Employee{Name: "Mayank", Age: 40, Designation: "Developer"} | |
// Accessing "Name" Properties... | |
fmt.Println(newEmployee.Name) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment