Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for usage_message (0.5 sec)

  1. src/cmd/go/testdata/script/test_flags.txt

    stderr '^usage: go test .*$'
    stderr '^Run ''go help test'' and ''go help testflag'' for details.$'
    
    # Passing -help to the test binary should show flag help.
    go test ./x -args -help
    stdout 'usage_message'
    
    # -covermode, -coverpkg, and -coverprofile should imply -cover
    go test -covermode=set ./x
    stdout '\s+coverage:\s+'
    
    go test -coverpkg=encoding/binary ./x
    stdout '\s+coverage:\s+'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/pack/pack.go

    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    )
    
    const usageMessage = `Usage: pack op file.a [name....]
    Where op is one of cprtx optionally followed by v for verbose output.
    For compatibility with old Go build environments the op string grc is
    accepted as a synonym for c.
    
    For more information, run
    	go doc cmd/pack`
    
    func usage() {
    	fmt.Fprintln(os.Stderr, usageMessage)
    	os.Exit(2)
    }
    
    func main() {
    	log.SetFlags(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/cmd/trace/main.go

    	"internal/trace"
    	"internal/trace/raw"
    	"internal/trace/traceviewer"
    	"io"
    	"log"
    	"net"
    	"net/http"
    	_ "net/http/pprof" // Required to use pprof
    	"os"
    	"sync/atomic"
    	"time"
    )
    
    const usageMessage = "" +
    	`Usage of 'go tool trace':
    Given a trace file produced by 'go test':
    	go test -trace=trace.out pkg
    
    Open a web browser displaying trace:
    	go tool trace [flags] [pkg.test] trace.out
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. src/cmd/cover/cover.go

    	"internal/coverage/slicewriter"
    	"io"
    	"log"
    	"os"
    	"path/filepath"
    	"sort"
    	"strconv"
    	"strings"
    
    	"cmd/internal/edit"
    	"cmd/internal/objabi"
    	"cmd/internal/telemetry"
    )
    
    const usageMessage = "" +
    	`Usage of 'go tool cover':
    Given a coverage profile produced by 'go test':
    	go test -coverprofile=c.out
    
    Open a web browser displaying annotated source code:
    	go tool cover -html=c.out
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top