Basic Types
go2hx | underlying type | Haxe equivalent | go |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
n/a | n/a |
|
|
|
|
|
|
- Integer division returns an Integer not a Float unlike Haxe.
- Haxe's default Integer size is
32
Go's default Integer size is64
, go2hx uses Integer32
as the default.
Pointer Types
go2hx | underlying type | Haxe equivalent | go |
---|---|---|---|
|
| n/a |
|
|
| n/a |
|
- Pointer is used for all pass by value types of Haxe i.e BasicTypes
- Ref is used for all pass by ref values, all other Haxe types besides BasicTypes.
Channel Type
go2hx | underlying type | Haxe equivalent | go |
---|---|---|---|
| n/a | n/a |
|
- Uses Haxe locks/mutexs internally.
- Used for goroutine data passing in a thread safe way.
Map Type
go2hx | underlying type | Haxe equivalent | go |
---|---|---|---|
|
|
|
|
- Key equality is preformed using deep equality thereby structs for go2hx can be keys.
- Internally it uses an array of keys and values with calls to reflection.
- GoMap always holds the GoType information.
Array Types
go2hx | underlying type | Haxe equivalent | go |
---|---|---|---|
|
|
|
|
|
|
|
|
- Slice can have it's length change by creating a new copy with
append