internal

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentWorkingDirEnv string = "GBER_CURRENT_WORKING_DIR"

Functions

func FindGoProjectDir

func FindGoProjectDir(dirName ...string) string

func GetCommanlyUsedArchOS

func GetCommanlyUsedArchOS() []string

func GetCurrentWorkingDir

func GetCurrentWorkingDir() string

func GetOtherArchOS

func GetOtherArchOS() []string

func IsGoCompilerInstalled

func IsGoCompilerInstalled() bool

func IsUPXInstalled

func IsUPXInstalled() bool

func SetCurrentWorkingDir

func SetCurrentWorkingDir(dPath string)

Types

type GoBuilder

type GoBuilder struct {
	ArchOSList     []string `json:"arch_os_list"`
	EnableCompress bool     `json:"compress"`
	EnableUPX      bool     `json:"upx"`
	BuildArgs      []string `json:"build_args"`
	WorkDir        string   `json:"work_dir"`
}

func NewGoBuilder

func NewGoBuilder() (g *GoBuilder)

func (*GoBuilder) Build

func (g *GoBuilder) Build()

func (*GoBuilder) LoadBuilder

func (g *GoBuilder) LoadBuilder()

func (*GoBuilder) PackWithUPX

func (g *GoBuilder) PackWithUPX(osInfo, archInfo, binDir, bName string)

func (*GoBuilder) ProjectDir

func (g *GoBuilder) ProjectDir() string

func (*GoBuilder) Zip

func (g *GoBuilder) Zip(binDir, osInfo, archInfo, binName string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL