Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for true (0.15 sec)

  1. cmd/main.go

    `
    
    func newApp(name string) *cli.App {
    	// Collection of minio commands currently supported are.
    	commands := []cli.Command{}
    
    	// Collection of minio commands currently supported in a trie tree.
    	commandsTree := trie.NewTrie()
    
    	// registerCommand registers a cli command.
    	registerCommand := func(command cli.Command) {
    		commands = append(commands, command)
    		commandsTree.Insert(command.Name)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. misc/go_android_exec/main.go

    			if err := adb("exec-out", "mkdir", "-p", path.Dir(deviceModDir)); err != nil {
    				return 0, err
    			}
    			// We use a single recursive 'adb push' of the module root instead of
    			// walking the tree and copying it piecewise. If the directory tree
    			// contains nested modules this could push a lot of unnecessary contents,
    			// but for the golang.org/x repos it seems to be significantly (~2x)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  3. docs/debugging/s3-verify/main.go

    			sourceFailed = true
    		} else if srcSize != srcCtnt.Size {
    			fmt.Printf("unreadable on source - size differs upon read: %s\n", srcCtnt.Key)
    			sourceFailed = true
    		}
    	}()
    	go func() {
    		defer wg.Done()
    		tgtSize, err := io.Copy(tgtSha256, tobj)
    		if err != nil {
    			fmt.Printf("unreadable on target: %s (%s)\n", tgtCtnt.Key, err)
    			targetFailed = true
    		} else if tgtSize != tgtCtnt.Size {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  4. docs/debugging/inspect/main.go

    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputFileName = input.File
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    		inputFileName = flag.Args()[0]
    	default:
    		flag.Usage()
    		fatalIf(true, "Only 1 file can be decrypted")
    		os.Exit(1)
    	}
    
    	// Calculate the output file name
    	switch {
    	case strings.HasSuffix(inputFileName, ".enc"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/cmd/asm/main.go

    	ctxt.Flag_linkshared = *flags.Linkshared
    	ctxt.Flag_shared = *flags.Shared || *flags.Dynlink
    	ctxt.Flag_maymorestack = flags.DebugFlags.MayMoreStack
    	ctxt.Debugpcln = flags.DebugFlags.PCTab
    	ctxt.IsAsm = true
    	ctxt.Pkgpath = *flags.Importpath
    	switch *flags.Spectre {
    	default:
    		log.Printf("unknown setting -spectre=%s", *flags.Spectre)
    		os.Exit(2)
    	case "":
    		// nothing
    	case "index":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  6. docs/debugging/pprofgoparser/main.go

    		default:
    			z := goroutinesRE.FindStringSubmatch(line)
    			if len(z) == 3 {
    				if z[2] != "" {
    					a, _ := strconv.Atoi(z[2])
    					t = time.Duration(a) * time.Minute
    					save(line)
    					record = true
    				} else {
    					skip = true
    				}
    			}
    		}
    	}
    
    	return ret, nil
    }
    
    const helpUsage = `
    
    At least one argument is required to run this tool.
    
    EXAMPLE:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/debugging/healing-bin/main.go

    	"strings"
    
    	"github.com/minio/cli"
    	"github.com/tinylib/msgp/msgp"
    )
    
    func main() {
    	app := cli.NewApp()
    	app.Copyright = "MinIO, Inc."
    	app.Usage = "healing.bin to JSON"
    	app.HideVersion = true
    	app.HideHelpCommand = true
    	app.CustomAppHelpTemplate = `NAME:
      {{.Name}} - {{.Usage}}
    
    USAGE:
      {{.Name}} {{if .VisibleFlags}}[FLAGS]{{end}} [HEALINGBINFILE|INSPECTZIPFILE]
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  8. docs/debugging/s3-check-md5/main.go

    		for _, b := range bucketsInfo {
    			buckets = append(buckets, b.Name)
    		}
    	}
    
    	for _, bucket := range buckets {
    		opts := minio.ListObjectsOptions{
    			Recursive:    true,
    			Prefix:       prefix,
    			WithVersions: versions,
    			WithMetadata: true,
    		}
    
    		objFullPath := func(obj minio.ObjectInfo) (fpath string) {
    			fpath = path.Join(bucket, obj.Key)
    			if versions {
    				fpath += ":" + obj.VersionID
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. docs/debugging/xattr/main.go

    	table.SetAutoWrapText(false)
    	table.SetAutoFormatHeaders(true)
    	table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
    	table.SetAlignment(tablewriter.ALIGN_LEFT)
    	table.SetCenterSeparator("")
    	table.SetColumnSeparator("")
    	table.SetRowSeparator("")
    	table.SetHeaderLine(false)
    	// table.EnableBorder(false)
    	table.SetTablePadding("\t") // pad with tabs
    	table.SetNoWhiteSpace(true)
    
    	if set {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  10. docs/extensions/s3zip/examples/minio-go/main.go

    		Creds: credentials.NewStaticV4("access-key", "secret-key", ""),
    	})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	var opts minio.GetObjectOptions
    
    	// Add extract header to request:
    	opts.Set("x-minio-extract", "true")
    
    	// Download API.md from the archive
    	rd, err := s3Client.GetObject(context.Background(), "your-bucket", "path/to/file.zip/data.csv", opts)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	_, err = io.Copy(os.Stdout, rd)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jun 14 18:04:14 GMT 2021
    - 694 bytes
    - Viewed (0)
Back to top