installers.lang.golang #
golang
To get started
import freeflowuniverse.crystallib.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.1'
fn get #
fn get(args_ ArgsGet) !&GolangInstaller
fn install_reset #
fn install_reset() !
fn switch #
fn switch(name string)
switch instance to be used for golang
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct GolangInstaller #
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
}