Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 275 for scanOne (0.13 sec)

  1. cmd/data-scanner-metric.go

    	scannerMetricScanBucketDrive // Single bucket on one drive
    	scannerMetricCompactFolder   // Folder compacted.
    
    	// Must be last:
    	scannerMetricLast
    )
    
    // log scanner action.
    // Use for s > scannerMetricStartTrace
    func (p *scannerMetrics) log(s scannerMetric, paths ...string) func(custom map[string]string) {
    	startTime := time.Now()
    	return func(custom map[string]string) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. src/text/scanner/example_test.go

    package scanner_test
    
    import (
    	"fmt"
    	"strings"
    	"text/scanner"
    	"unicode"
    )
    
    func Example() {
    	const src = `
    // This is scanned code.
    if a > 10 {
    	someParsable = text
    }`
    
    	var s scanner.Scanner
    	s.Init(strings.NewReader(src))
    	s.Filename = "example"
    	for tok := s.Scan(); tok != scanner.EOF; tok = s.Scan() {
    		fmt.Printf("%s: %s\n", s.Position, s.TokenText())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 02:01:58 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/slice.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package lex
    
    import (
    	"text/scanner"
    
    	"cmd/internal/src"
    )
    
    // A Slice reads from a slice of Tokens.
    type Slice struct {
    	tokens []Token
    	base   *src.PosBase
    	line   int
    	pos    int
    }
    
    func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 29 22:49:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. cmd/erasure.go

    	// Put all buckets into channel.
    	bucketCh := make(chan BucketInfo, len(buckets))
    
    	// Shuffle buckets to ensure total randomness of buckets, being scanned.
    	// Otherwise same set of buckets get scanned across erasure sets always.
    	// at any given point in time. This allows different buckets to be scanned
    	// in different order per erasure set, this wider spread is needed when
    	// there are lots of buckets with different order of objects in them.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. src/text/template/parse/lex.go

    )
    
    // stateFn represents the state of the scanner as a function that returns the next state.
    type stateFn func(*lexer) stateFn
    
    // lexer holds the state of the scanner.
    type lexer struct {
    	name         string // the name of the input; used only for error reports
    	input        string // the string being scanned
    	leftDelim    string // start of action marker
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  6. src/fmt/doc.go

    [Scan] (that is, it implements the [Scanner] interface) that
    method will be used to scan the text for that operand.  Also,
    if the number of arguments scanned is less than the number of
    arguments provided, an error is returned.
    
    All arguments to be scanned must be either pointers to basic
    types or implementations of the [Scanner] interface.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    			}
    			in.beginningOfLine = in.hash()
    			in.text = "#"
    			return '#'
    
    		case scanner.Ident:
    			// Is it a macro name?
    			name := in.Stack.Text()
    			macro := in.macros[name]
    			if macro != nil {
    				nesting++
    				in.invokeMacro(macro)
    				continue
    			}
    			fallthrough
    		default:
    			if tok == scanner.EOF && len(in.ifdefStack) > 0 {
    				// We're skipping text but have run out of input with no #endif.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  8. src/math/big/intconv.go

    	}
    	return byte(ch), err
    }
    
    func (r byteReader) UnreadByte() error {
    	return r.UnreadRune()
    }
    
    var _ fmt.Scanner = intOne // *Int must implement fmt.Scanner
    
    // Scan is a support routine for [fmt.Scanner]; it sets z to the value of
    // the scanned number. It accepts the formats 'b' (binary), 'o' (octal),
    // 'd' (decimal), 'x' (lowercase hexadecimal), and 'X' (uppercase hexadecimal).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. docs/metrics/v3.md

    | `/notification` | Metrics related to notification functionality |
    
    ### Scanner metrics
    
    These are metrics about the minio scanner
    
    | Path       | Description                          |
    |------------|--------------------------------------|
    | `/scanner` | Metrics related to the MinIO scanner |
    
    ### System metrics
    
    These are metrics about the minio process and the node.
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 40.9K bytes
    - Viewed (0)
  10. src/cmd/internal/pgo/deserialize.go

    	}
    
    	for scanner.Scan() {
    		readStr := scanner.Text()
    
    		callerName := readStr
    
    		if !scanner.Scan() {
    			if err := scanner.Err(); err != nil {
    				return nil, fmt.Errorf("error reading preprocessed profile: %w", err)
    			}
    			return nil, fmt.Errorf("preprocessed profile entry missing callee")
    		}
    		calleeName := scanner.Text()
    
    		if !scanner.Scan() {
    			if err := scanner.Err(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top