// Copyright 2017-2025 WIT.COM Inc. All rights reserved. // Use of this source code is governed by the GPL 3.0 package main import ( "sync" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/zoopb" ) var me *mainType // this app's variables type mainType struct { once sync.Once // one-time initialized data sh *prep.Auto // more experiments for bash handling forge *forgepb.Forge // your customized repo preferences and settings machine *zoopb.Machine // your customized repo preferences and settings homedir string // where the user homedir is } func initForge() { if me.forge == nil { me.forge = forgepb.Init() me.forge.Config.DumpENV() } initMachine() } func initMachine() { if me.machine == nil { me.machine, _ = zoopb.InitMachine() } }