Go vs PHP Syntax Comparison
Data types PHP types:
bool string int //Integer float array object NULL resource Go types:
string bool int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 uintptr byte //uint8 rune //int32 float32 float64 complex64 complex128 array slices map struct Variables Variable declarations
Go PHP var i int $i = 0 // integer var f float64 $f = 0.0 // float var b bool $b = false // boolean var s string $s = "" // string var a [2]string $a = [] // array Short variable declarations
[Read More]