Almost all macro functions to provide ease of use, using go2hx code in a Haxe manner.
Static variables
staticrecover_exception:AnyInterface = null
Where the recover_exception is stored in case recover
is called.
Static methods
staticasInterface(expr:Dynamic):Dynamic
Create a simulated Go interface in Haxe, check if type with suffix _asInterface exists, and if so generate the type on the fly.
Parameters:
expr |
---|
Returns:
Expr
staticpointer(expr:Dynamic, hasSet:Dynamic):Dynamic
Create a simulated Go pointer in Haxe
Parameters:
expr | |
---|---|
hasSet |
Returns:
Expr
staticsetRef(expr:Dynamic):Dynamic
Create a Ref (simulated Go pointer but for a Haxe type that is pass by ref) regardless if the type is null or not.
Parameters:
expr |
---|
Returns:
Expr
statictypeAssert(e:AnyInterface, toType:GoType):Any
Assert that a type is the checkType complexType, if not throw.
Parameters:
expr | must follow the format ($expr: $ct) |
---|
Returns:
Expr
statictypeEquals(e:AnyInterface, t2:GoType):Bool
Check if type is equal to the checkType complexType.
Parameters:
expr | must follow the format ($expr: $ct) |
---|
Returns:
Expr Bool