bug

Imports

Imports #

"bytes"
"context"
"fmt"
"io"
urlpkg "net/url"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strings"
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/internal/envcmd"
"cmd/go/internal/web"
"cmd/go/internal/work"

Constants & Variables

CmdBug var #

var CmdBug = *ast.UnaryExpr

bugFooter const #

const bugFooter = `### What did you do?





### What did you expect to see?



### What did you see instead?

`

bugHeader const #

const bugHeader = `

`

Functions

firstLine function #

firstLine returns the first line of a given byte slice.

func firstLine(buf []byte) []byte

init function #

func init()

printCDetails function #

func printCDetails(w io.Writer)

printCmdOut function #

printCmdOut prints the output of running the given command. It ignores failures; 'go bug' is best effort.

func printCmdOut(w io.Writer, prefix string, path string, args ...string)

printEnvDetails function #

func printEnvDetails(w io.Writer)

printGlibcVersion function #

printGlibcVersion prints information about the glibc version. It ignores failures.

func printGlibcVersion(w io.Writer)

printGoDetails function #

func printGoDetails(w io.Writer)

printGoEnv function #

func printGoEnv(w io.Writer)

printGoVersion function #

func printGoVersion(w io.Writer)

printOSDetails function #

func printOSDetails(w io.Writer)

runBug function #

func runBug(ctx context.Context, cmd *base.Command, args []string)

Generated with Arrow