gobuild

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Overview

Package gobuild provides utilities for building programs and tests for the debugging session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDebugBinaryPath added in v1.21.0

func DefaultDebugBinaryPath(name string) string

DefaultDebugBinaryPath returns an unused file path in the current directory named 'name' followed by a random string

func GoBuild

func GoBuild(debugname string, pkgs []string, buildflags string) error

GoBuild builds non-test files in 'pkgs' with the specified 'buildflags' and writes the output at 'debugname'.

func GoBuildCombinedOutput added in v1.6.1

func GoBuildCombinedOutput(debugname string, pkgs []string, buildflags interface{}) (string, []byte, error)

GoBuildCombinedOutput builds non-test files in 'pkgs' with the specified 'buildflags' and writes the output at 'debugname'.

func GoTestBuild

func GoTestBuild(debugname string, pkgs []string, buildflags string) error

GoTestBuild builds test files 'pkgs' with the specified 'buildflags' and writes the output at 'debugname'.

func GoTestBuildCombinedOutput added in v1.6.1

func GoTestBuildCombinedOutput(debugname string, pkgs []string, buildflags interface{}) (string, []byte, error)

GoTestBuildCombinedOutput builds test files 'pkgs' with the specified 'buildflags' and writes the output at 'debugname'.

func Remove

func Remove(path string)

Remove the file at path and issue a warning to stderr if this fails. This can be used to remove the temporary binary generated for the session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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