Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created November 21, 2019 07:21
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 Mayankgupta688/fd546fbb214e8c36e64f3f68415b9384 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/fd546fbb214e8c36e64f3f68415b9384 to your computer and use it in GitHub Desktop.
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