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"
"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"
var CmdBug = *ast.UnaryExprconst bugFooter = `### What did you do?
### What did you expect to see?
### What did you see instead?
`const bugHeader = `
`firstLine returns the first line of a given byte slice.
func firstLine(buf []byte) []bytefunc init()func printCDetails(w io.Writer)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)func printEnvDetails(w io.Writer)printGlibcVersion prints information about the glibc version. It ignores failures.
func printGlibcVersion(w io.Writer)func printGoDetails(w io.Writer)func printGoEnv(w io.Writer)func printGoVersion(w io.Writer)func printOSDetails(w io.Writer)func runBug(ctx context.Context, cmd *base.Command, args []string)Generated with Arrow