package main import ( "fmt" ) type Address struct { City string Street string } type Employee struct { Name string Address Salary float32 } func (e Employee) print() { fmt.Println(e.Name, Address{e.City, e.Street}, e.Salary) } func main() { emp := Employee{ Name: "Erős Istávn", Address: Address{"Szeged", "Kék utca"}, Salary: 395, } emp.print() }