Structures / Constructors
Default constructor
Without any parameters
With parameters
With default parameter values
Call of the parent constructor
Call of its own constructor
//There are no classes in golang
type
man
struct
{
Name
string
}
man
:=
man
{}
fmt.
Println
(
"man ="
,
man
)