Methods

Add a function to your project with GXML tag <func/>.

Syntax

Function tags are placed at the root of your <methods/> tag.

GXML attributes

GXML content :

Defines Go code block to run.

Comments

To comment a function use XML style comments. The comments must be in your tag’s GXML content. For example :

 <func>
 <!-- Comment -->
 </func>

Sample tag :

<methods>
	...
	<func name="Greet" var="name string" return="string">
		<!-- this function greets people -->
		return fmt.Sprintf("Hi %s", name)
	</func>
	...
</methods>


Exported to package:
Exports to files :
Writes tests to :