installers.lang.golang #
golang
To get started
import freeflowuniverse.herolib.installers.lang.golang
mut installer:= golang.get()!
//will automatically do a destroy if the version changes, to make sure there are no left overs
installer.install()!
Constants #
const version = '1.23.6'
fn get #
fn get(args_ ArgsGet) !&GolangInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj GolangInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !GolangInstaller
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for golang
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
struct GolangInstaller #
@[heap]
struct GolangInstaller {
pub mut:
name string = 'default'
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (GolangInstaller) build #
fn (mut self GolangInstaller) build() !
fn (GolangInstaller) destroy #
fn (mut self GolangInstaller) destroy() !
fn (GolangInstaller) install #
fn (mut self GolangInstaller) install(args InstallArgs) !
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}