Embedding (Inheritance)

In this way, you can share common variables.
type Transportation struct {
	//
}

type Train struct {
 Transportation
}

type Bus struct {
 Transportation
}
 

Reference