Introduzione a Go e RPC in Go - home · DAMON

– bool, string, int, uint, float32, float64, … • Type conversion var i int = 42 var f float64 = float64(i) – Unlike in C, in Go assignmentbetweenitems of different type requiresan explicitconversion • Type inference – Variable'stype is inferredfrom the valueon the right hand side var i int j := i // j is an int Valeria Cardellini ... ................
................