Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Demakin (0.2 sec)

  1. src/bufio/bufio_test.go

    type scriptedReader []func(p []byte) (n int, err error)
    
    func (sr *scriptedReader) Read(p []byte) (n int, err error) {
    	if len(*sr) == 0 {
    		panic("too many Read calls on scripted Reader. No steps remain.")
    	}
    	step := (*sr)[0]
    	*sr = (*sr)[1:]
    	return step(p)
    }
    
    func newScriptedReader(steps ...func(p []byte) (n int, err error)) io.Reader {
    	sr := scriptedReader(steps)
    	return &sr
    }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    If the type is omitted, the constants take the
    individual types of the corresponding expressions.
    If the expression values are untyped <a href="#Constants">constants</a>,
    the declared constants remain untyped and the constant identifiers
    denote the constant values. For instance, if the expression is a
    floating-point literal, the constant identifier denotes a floating-point
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/1-time.md

    These new behaviors are only enabled when the main Go program
    is in a module with a `go.mod` `go` line using Go 1.23.0 or later.
    When Go 1.23 builds older programs, the old behaviors remain in effect.
    The new [GODEBUG setting](/doc/godebug) [`asynctimerchan=1`](/pkg/time/#NewTimer)
    can be used to revert back to asynchronous channel behaviors
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    			}
    
    			uint16string := strings.Repeat(".", uint16max)
    			remain := wantLen
    			for remain > 0 {
    				commentLen := int(uint16max) - directoryHeaderLen - 1
    				thisRecLen := directoryHeaderLen + int(uint16max) + commentLen
    				if int64(thisRecLen) > remain {
    					remove := thisRecLen - int(remain)
    					commentLen -= remove
    					thisRecLen -= remove
    				}
    				remain -= int64(thisRecLen)
    				f, err := w.CreateHeader(&FileHeader{
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/bufio/bufio.go

    		return
    	}
    
    	b.lastByte = -1
    	b.lastRuneSize = -1
    
    	remain := n
    	for {
    		skip := b.Buffered()
    		if skip == 0 {
    			b.fill()
    			skip = b.Buffered()
    		}
    		if skip > remain {
    			skip = remain
    		}
    		b.r += skip
    		remain -= skip
    		if remain == 0 {
    			return n, nil
    		}
    		if b.err != nil {
    			return n - remain, b.readErr()
    		}
    	}
    }
    
    // Read reads data into p.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  6. doc/go_spec.html

    If the type is omitted, the constants take the
    individual types of the corresponding expressions.
    If the expression values are untyped <a href="#Constants">constants</a>,
    the declared constants remain untyped and the constant identifiers
    denote the constant values. For instance, if the expression is a
    floating-point literal, the constant identifier denotes a floating-point
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
Back to top