Go Plugin - Function Path

Multi-Lingual Interoperability System

Go Plugin - Function Path

callable=[function or method]

func HelloWorld() // callable=HelloWorld
func (this *MyMap) Contains(k string) bool // callable=MyMap.Contains

global=[global variable/const name]

const FiveSeconds = time.Second*5 // global=FiveSeconds
var SomeNumber int // global=SomeNumber

field=[field name]

type Student struct{
 Name string // field=Student.Name
}

instance_required

// callable=MyMap.Contains,instance_required
func (this *MyMap) Contains(k string) bool 

type Student struct{
 Name string // field=Student.Name,instance_required
}

setter

// global=SomeNumber,setter - loads a setter for SomeNumber
var SomeNumber int 

// field=Student.Name,instance_required,setter loads a setter for the field
type Student struct{
 Name string
}

getter

// global=FiveSeconds,getter - loads a getter for FiveSeconds
const FiveSeconds = time.Second*5

// global=SomeNumber,getter - loads a getter for SomeNumber
var SomeNumber int 

// field=Student.Name,instance_required,getter loads a getter for the field
type Student struct{
 Name string
}