3 ms·
Yeah. From the Go spec: "The static type (or just type) of a variable is the type defined by its declaration. Variables of interface type also have a distinct
by shurcooL 13y ago
Yeah. From the Go spec:
"The static type (or just type) of a variable is the type defined by its declaration. Variables of interface type also have a distinct dynamic type, which is the actual type of the value stored in the variable at run time. The dynamic type may vary during execution but is always assignable to the static type of the interface variable. For non-interface types, the dynamic type is always the static type."