Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for main (0.17 sec)

  1. cmd/admin-handlers.go

    	scheme := "https"
    	if !globalIsTLS {
    		scheme = "http"
    	}
    
    	// save MinIO start script to inspect command
    	var scrb bytes.Buffer
    	fmt.Fprintf(&scrb, `#!/usr/bin/env bash
    
    function main() {
    	for file in $(ls -1); do
    		dest_file=$(echo "$file" | cut -d ":" -f1)
    		mv "$file" "$dest_file"
    	done
    
    	# Read content of inspect-input.txt
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  2. src/archive/zip/reader_test.go

    // instead of >= uint32max and then running this program:
    //
    //	package main
    //
    //	import (
    //		"archive/zip"
    //		"bytes"
    //		"io"
    //		"log"
    //		"os"
    //	)
    //
    //	type zeros struct{}
    //
    //	func (zeros) Read(b []byte) (int, error) {
    //		clear(b)
    //		return len(b), nil
    //	}
    //
    //	func main() {
    //		bigZip := makeZip("big.file", io.LimitReader(zeros{}, 1<<32-1))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Annotate Ref in Prog with C types by parsing gcc debug output.
    // Conversion of debug output to Go types.
    
    package main
    
    import (
    	"bytes"
    	"debug/dwarf"
    	"debug/elf"
    	"debug/macho"
    	"debug/pe"
    	"encoding/binary"
    	"errors"
    	"flag"
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"internal/xcoff"
    	"math"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	}
    
    	return net.JoinHostPort(globalMinioHost, globalMinioPort)
    }
    
    // fetches a random number between range min-max.
    func getRandomRange(min, max int, seed int64) int {
    	// special value -1 means no explicit seeding.
    	if seed != -1 {
    		rand.Seed(seed)
    	}
    	return rand.Intn(max-min) + min
    }
    
    // Randomizes the order of bytes in the byte array
    // using Knuth Fisher-Yates shuffle algorithm.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    	if globalIsDistErasure {
    		n = 2048
    	}
    
    	// Avoid allocating more than half of the available memory
    	if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN {
    		n = maxN
    	}
    
    	if globalIsCICD || strconv.IntSize == 32 {
    		n = 256 // 256MiB for CI/CD environments is sufficient or on 32bit platforms.
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
Back to top