Documentation
¶
Overview ¶
compiler is the code charged to compile no already compiled GO code in the xamboo server. It will use the xamboo go.mod environment and gopath to compile. It is thread safe and will compile only once even if there are more than one request at the same time It will keep the compiler results in Plugin object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { Mutex sync.RWMutex SourcePath string PluginPath string PluginVPath string Version int Messages string Error error Status int // 0: not loaded/compile, 1: OK, 2: compile error (see messages) Lib *plugin.Plugin Libs map[string]*plugin.Plugin // standard libraries function (can be nil if not a page library) Run func(*context.Context, *xcore.XTemplate, *xcore.XLanguage, interface{}) interface{} }
Click to show internal directories.
Click to hide internal directories.