Copying an object

Structures

//There are no classes in golang
type shape struct {
    LineCount int
    Name      string
}

var square = shape{4, "Square"}
squareCopy := square

fmt.Println("squareCopy =", squareCopy)