gobuild

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 9 Imported by: 0

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

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

func GoBuildCombinedOutput(debugname string, pkgs []string, buildflags string) (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

func GoTestBuildCombinedOutput(debugname string, pkgs []string, buildflags string) (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