Documentation
¶
Index ¶
- func GetCoreFile(lang string) (string, error)
- func GetEmptyCompiler(lang string) (compiler, error)
- func GetProperArch(arch string, lang string) (string, error)
- func GetSupportedLangs(lang string) bool
- func IsTargetCompilerInstalled(target string) (string, error)
- type BuildData
- type CConfig
- type GoConfig
- func (g *GoConfig) Build(payload, dest string) ([]byte, error)
- func (g *GoConfig) BuildGoBuildCommand(payload, dest string)
- func (g *GoConfig) GetDebugImports() []string
- func (g *GoConfig) GetExportNames(extension string) string
- func (g *GoConfig) GetGarbleArgs(command []string) []string
- func (g *GoConfig) IsTypeSupported(t string) (string, string, error)
- func (g *GoConfig) PrepareBuild(buildData BuildData) error
- type GoMod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoreFile ¶ added in v0.2.0
func GetEmptyCompiler ¶ added in v0.2.0
GetEmptyCompiler retrieve correct compiler based on language
func GetSupportedLangs ¶ added in v0.2.0
func IsTargetCompilerInstalled ¶ added in v0.2.0
Types ¶
type CConfig ¶ added in v0.2.0
type CConfig struct {
ProjectDir string
TargetOs string
TargetCompiler string
OutDir string
CompileFlags []string
ExportDefPath string
ArtifactList []string
Env []string
// contains filtered or unexported fields
}
func NewEmptyCConfig ¶ added in v0.2.0
func NewEmptyCConfig() *CConfig
func (*CConfig) GetDebugImports ¶ added in v0.2.0
func (*CConfig) GetExportNames ¶ added in v0.2.0
func (*CConfig) IsTypeSupported ¶ added in v0.2.0
func (*CConfig) PrepareBuild ¶ added in v0.2.0
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 NewEmptyGoConfig ¶ added in v0.2.0
func NewEmptyGoConfig() *GoConfig
func (*GoConfig) BuildGoBuildCommand ¶
func (*GoConfig) GetDebugImports ¶ added in v0.2.0
func (*GoConfig) GetExportNames ¶ added in v0.2.0
func (*GoConfig) GetGarbleArgs ¶
func (*GoConfig) IsTypeSupported ¶ added in v0.2.0
IsTypeSupported retrieves build info based on type of executable
func (*GoConfig) PrepareBuild ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.