go2hx

manual

github

Basic Types

go2hxunderlying typeHaxe equivalentgo
GoInt
Int
Int
int32
GoInt64
haxe.Int64
haxe.Int64
int64/int
GoFloat64
Float
Float
float64
n/an/a
Bool
bool
GoString
haxe.io.Bytes
String
string

Pointer Types

go2hxunderlying typeHaxe equivalentgo
stdgo.Pointer
stdgo.Pointer.PointerData
n/a
*T
Ref
typedef Ref = T
n/a
*T

Channel Type

go2hxunderlying typeHaxe equivalentgo
stdgo.Chan
n/an/a
chan[T]

Map Type

go2hxunderlying typeHaxe equivalentgo
stdgo.GoMap
stdgo.GoMap.GoMapData
Map
map[K]V

Array Types

go2hxunderlying typeHaxe equivalentgo
stdgo.Slice
haxe.ds.Vector
Array
[]T
stdgo.GoArray
haxe.ds.Vector
haxe.ds.Vector
[]T