Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for parser (0.17 sec)

  1. src/cmd/asm/main.go

    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    			// reports errors to parser.Errorf
    			if ok {
    				obj.Flushplist(ctxt, pList, nil)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/addr2line/main.go

    	log.SetPrefix("addr2line: ")
    
    	// pprof expects this behavior when checking for addr2line
    	if len(os.Args) > 1 && os.Args[1] == "--help" {
    		printUsage(os.Stdout)
    		os.Exit(0)
    	}
    
    	flag.Usage = usage
    	flag.Parse()
    	if flag.NArg() != 1 {
    		usage()
    	}
    
    	f, err := objfile.Open(flag.Arg(0))
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer f.Close()
    
    	tab, err := f.PCLineTable()
    	if err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. misc/go_android_exec/main.go

    	// (https://code.google.com/p/android/issues/detail?id=3254), but it's
    	// still broken on our builders in 2023. Instead, append the exitcode to
    	// the output and parse it from there.
    	filter, exitStr := newExitCodeFilter(os.Stdout)
    	args += "; echo -n " + exitStr + "$?"
    
    	cmd := adbCmd("exec-out", args)
    	cmd.Stdout = filter
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  4. docs/debugging/inspect/main.go

    			// convert CRLF to LF
    			*keyHex = strings.ReplaceAll(text, "\n", "")
    			*keyHex = strings.TrimSpace(*keyHex)
    		}
    	}
    
    	var inputFileName, outputFileName string
    
    	// Parse parameters
    	switch {
    	case *stdin:
    		// Parse 'mc support inspect --json' output
    		input := struct {
    			File string `json:"file"`
    			Key  string `json:"key"`
    		}{}
    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. docs/debugging/s3-verify/main.go

    	debug                                            bool
    	insecure                                         bool
    )
    
    func buildS3Client(endpoint, accessKey, secretKey string, insecure bool) (*minio.Client, error) {
    	u, err := url.Parse(endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    	secure := strings.EqualFold(u.Scheme, "https")
    	transport, err := minio.DefaultTransport(secure)
    	if err != nil {
    		return nil, err
    	}
    	if insecure {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  6. docs/debugging/hash-set/main.go

    	flag.IntVar(&setCount, "set-count", 0, "Total set count")
    	flag.IntVar(&shards, "shards", 0, "Total shards count")
    	flag.BoolVar(&verbose, "v", false, "Display all objects")
    
    	flag.Parse()
    
    	if deploymentID == "" {
    		log.Fatalln("deployment ID is mandatory")
    	}
    
    	if setCount == 0 {
    		log.Fatalln("set count cannot be zero")
    	}
    
    	id := uuid.MustParse(deploymentID)
    
    	if file != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. docs/debugging/pprofgoparser/main.go

    const helpUsage = `
    
    At least one argument is required to run this tool.
    
    EXAMPLE:
         ./pprofgoparser --time 50m --margin 1m /path/to/*-goroutines-before,debug=2.txt
    `
    
    func main() {
    	flag.Parse()
    
    	if len(flag.Args()) == 0 {
    		log.Fatal(helpUsage)
    	}
    
    	var err error
    
    	goroutinesRE = regexp.MustCompile(`^goroutine [0-9]+ \[[^,]+(, ([0-9]+) minutes)?\]:$`)
    
    	if searchText != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. docs/debugging/s3-check-md5/main.go

    	}
    
    	var minModTime time.Time
    	if minModTimeStr != "" {
    		var e error
    		minModTime, e = time.Parse(time.RFC3339, minModTimeStr)
    		if e != nil {
    			log.Fatalln("Unable to parse --modified-since:", e)
    		}
    	}
    
    	u, err := url.Parse(endpoint)
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	secure := strings.EqualFold(u.Scheme, "https")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. docs/debugging/reorder-disks/main.go

    }
    
    func main() {
    	var node, args string
    
    	flag.StringVar(&node, "local-node-name", "", "the name of the local node")
    	flag.StringVar(&args, "args", "", "arguments passed to MinIO server")
    
    	flag.Parse()
    
    	localDisks, err := filterLocalDisks(node, args)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	if len(localDisks) == 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. docs/debugging/xattr/main.go

    	flag.Uint64Var(&value, "value", 0, "attribute value expects the value to be uint64")
    	flag.BoolVar(&set, "set", false, "this is a set attribute operation")
    
    	flag.Parse()
    
    	if set && value == 0 {
    		log.Fatalln("setting an attribute requires a non-zero value")
    	}
    
    	if !set && value > 0 {
    		log.Fatalln("to set a value please specify --set along with --value")
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top