package main import ( "fmt" ) type Employee struct { Name string City string Salary float32 } func (e Employee) print() { fmt.Println(e.Name, e.City, e.Salary) } func main() { emp := Employee{ Name: "Beker", City: "Budapest", Salary: 1000, } emp.print() }