You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
Examples: var num int = 16 var num int Now num has the zero value num := 16 num := int64(16) Now num is an int64 instead of an int. Note the syntax is similar to calling a function called int64 with the argument 16.
The text was updated successfully, but these errors were encountered:
Take a look at the "Explicit type conversions" slide in 09-struct.slide. I think some of that should show up in this talk, since the students have needed to do some type conversions already.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
var id type = val
id := val
Examples:
var num int = 16
var num int
Nownum
has the zero valuenum := 16
num := int64(16)
Now num is anint64
instead of anint
. Note the syntax is similar to calling a function calledint64
with the argument16
.The text was updated successfully, but these errors were encountered: