compiler

package
v0.0.0-...-8f6310f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoConfig

type GoConfig struct {
	ProjectDir   string
	GOOS         string
	GOARCH       string
	GOCACHE      string
	Buildmode    string
	Keep         bool
	Trimpath     bool
	Obfuscation  bool
	Path         string
	CompilerPath string

	Imports []string
	Command []string
	Env     []string
}

func NewGoConfig

func NewGoConfig(targetOs, arch, dirPath, buildmode string, keep, trimpath, obfuscation bool, imports []string) *GoConfig

func (*GoConfig) BuildGoBuildCommand

func (g *GoConfig) BuildGoBuildCommand(payload, dest string)

func (*GoConfig) GetGarbleArgs

func (g *GoConfig) GetGarbleArgs(command []string) []string

func (*GoConfig) GoBuild

func (g *GoConfig) GoBuild(payload, dest string) ([]byte, error)

Jump to

Keyboard shortcuts

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