Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 251 for Implementation (0.21 sec)

  1. src/text/template/parse/node.go

    // this template was parsed.
    type Pos int
    
    func (p Pos) Position() Pos {
    	return p
    }
    
    // Type returns itself and provides an easy default implementation
    // for embedding in a Node. Embedded in all non-trivial Nodes.
    func (t NodeType) Type() NodeType {
    	return t
    }
    
    const (
    	NodeText       NodeType = iota // Plain text.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/text/scanner/scanner.go

    			// read more bytes
    			// (an io.Reader must return io.EOF when it reaches
    			// the end of what it is reading - simply returning
    			// n == 0 will make this loop retry forever; but the
    			// error is in the reader implementation in that case)
    			i := s.srcEnd - s.srcPos
    			n, err := s.src.Read(s.srcBuf[i:bufLen])
    			s.srcPos = 0
    			s.srcEnd = i + n
    			s.srcBuf[s.srcEnd] = utf8.RuneSelf // sentinel
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/net/http/clientserver_test.go

    	return func(ts *httptest.Server) {
    		ts.Config.ErrorLog = lg
    	}
    }
    
    // newClientServerTest creates and starts an httptest.Server.
    //
    // The mode parameter selects the implementation to test:
    // HTTP/1, HTTP/2, etc. Tests using newClientServerTest should use
    // the 'run' function, which will start a subtests for each tested mode.
    //
    // The vararg opts parameter can include functions to configure the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/fsys/fsys.go

    			return nil, &fs.PathError{Op: opName, Path: cpath, Err: nonFileInOverlayError(node.actualFilePath)}
    		}
    		return fakeFile{name: filepath.Base(path), real: fi}, nil
    	}
    }
    
    // fakeFile provides an fs.FileInfo implementation for an overlaid file,
    // so that the file has the name of the overlaid file, but takes all
    // other characteristics of the replacement file.
    type fakeFile struct {
    	name string
    	real fs.FileInfo
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. src/context/context.go

    // It does this by looking up parent.Value(&cancelCtxKey) to find
    // the innermost enclosing *cancelCtx and then checking whether
    // parent.Done() matches that *cancelCtx. (If not, the *cancelCtx
    // has been wrapped in a custom implementation providing a
    // different done channel, in which case we should not bypass it.)
    func parentCancelCtx(parent Context) (*cancelCtx, bool) {
    	done := parent.Done()
    	if done == closedchan || done == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  6. src/net/unixsock.go

    	switch network {
    	case "unix", "unixgram", "unixpacket":
    		return &UnixAddr{Name: address, Net: network}, nil
    	default:
    		return nil, UnknownNetworkError(network)
    	}
    }
    
    // UnixConn is an implementation of the [Conn] interface for connections
    // to Unix domain sockets.
    type UnixConn struct {
    	conn
    }
    
    // SyscallConn returns a raw network connection.
    // This implements the [syscall.Conn] interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/named.go

    	return Unalias(t.resolve().underlying)
    }
    
    func (t *Named) String() string { return TypeString(t, nil) }
    
    // ----------------------------------------------------------------------------
    // Implementation
    //
    // TODO(rfindley): reorganize the loading and expansion methods under this
    // heading.
    
    // under returns the expanded underlying type of n0; possibly by following
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/math/big/nat.go

    // license that can be found in the LICENSE file.
    
    // This file implements unsigned multi-precision integers (natural
    // numbers). They are the building blocks for the implementation
    // of signed integers, rationals, and floating-point numbers.
    //
    // Caution: This implementation relies on the function "alias"
    //          which assumes that (nat) slice capacities are never
    //          changed (no 3-operand slice expressions). If that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    	// comments following the expression.
    	After []Comment
    }
    
    // Comment returns the receiver. This isn't useful by itself, but
    // a [Comments] struct is embedded into all the expression
    // implementation types, and this gives each of those a Comment
    // method to satisfy the Expr interface.
    func (c *Comments) Comment() *Comments {
    	return c
    }
    
    // A FileSyntax represents an entire go.mod file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    //     which is encoded as a string of decimal digits.
    //     These indices are stable across different representations
    //     of the same package, even source and export data.
    //     The indices used are implementation specific and may not correspond to
    //     the argument to the go/types function.
    //
    // In the example below,
    //
    //	package p
    //
    //	type T interface {
    //		f() (a string, b struct{ X int })
    //	}
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top