Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for implements (0.3 sec)

  1. src/bytes/reader.go

    func (r *Reader) Size() int64 { return int64(len(r.s)) }
    
    // Read implements the [io.Reader] interface.
    func (r *Reader) Read(b []byte) (n int, err error) {
    	if r.i >= int64(len(r.s)) {
    		return 0, io.EOF
    	}
    	r.prevRune = -1
    	n = copy(b, r.s[r.i:])
    	r.i += int64(n)
    	return
    }
    
    // ReadAt implements the [io.ReaderAt] interface.
    func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		t.Errorf("NewWriterSize's Writer.Size = %d; want %d", got, want)
    	}
    }
    
    // An onlyReader only implements io.Reader, no matter what other methods the underlying implementation may have.
    type onlyReader struct {
    	io.Reader
    }
    
    // An onlyWriter only implements io.Writer, no matter what other methods the underlying implementation may have.
    type onlyWriter struct {
    	io.Writer
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    then the <code>File</code> interface is implemented by both <code>S1</code> and
    <code>S2</code>, regardless of what other methods
    <code>S1</code> and <code>S2</code> may have or share.
    </p>
    
    <p>
    A type implements any interface comprising any subset of its methods
    and may therefore implement several distinct interfaces. For
    instance, all types implement the <i>empty interface</i>:
    </p>
    
    <pre>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    memory points, and so on) is pinned.
    
    These rules are checked dynamically at runtime. The checking is
    controlled by the cgocheck setting of the GODEBUG environment
    variable. The default setting is GODEBUG=cgocheck=1, which implements
    reasonably cheap dynamic checks. These checks may be disabled
    entirely using GODEBUG=cgocheck=0. Complete checking of pointer
    handling, at some cost in run time, is available by setting
    GOEXPERIMENT=cgocheck2 at build time.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/flags/flags.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 flags implements top-level flags and the usage message for the assembler.
    package flags
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/objabi"
    	"flag"
    	"fmt"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    var (
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg go/types, func ExprString(ast.Expr) string
    pkg go/types, func Id(*Package, string) string
    pkg go/types, func Identical(Type, Type) bool
    pkg go/types, func Implements(Type, *Interface) bool
    pkg go/types, func IsInterface(Type) bool
    pkg go/types, func LookupFieldOrMethod(Type, bool, *Package, string) (Object, []int, bool)
    pkg go/types, func MissingMethod(Type, *Interface, bool) (*Func, bool)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. src/archive/tar/writer.go

    }
    
    func (fw *regFileWriter) ReadFrom(r io.Reader) (int64, error) {
    	return io.Copy(struct{ io.Writer }{fw}, r)
    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fw regFileWriter) logicalRemaining() int64 {
    	return fw.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fw regFileWriter) physicalRemaining() int64 {
    	return fw.nb
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  8. src/cmd/api/api_test.go

    			exception: []string{"B"},
    			ok:        true,
    			out:       "",
    		},
    
    		// Test that a feature required on a subset of ports is implicitly satisfied
    		// by the same feature being implemented on all ports. That is, it shouldn't
    		// say "pkg syscall (darwin-amd64), type RawSockaddrInet6 struct" is missing.
    		// See https://go.dev/issue/4303.
    		{
    			name: "contexts reconverging after api/next/* update",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. misc/wasm/wasm_exec.js

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    "use strict";
    
    (() => {
    	const enosys = () => {
    		const err = new Error("not implemented");
    		err.code = "ENOSYS";
    		return err;
    	};
    
    	if (!globalThis.fs) {
    		let outputBuf = "";
    		globalThis.fs = {
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  10. doc/go_spec.html

    interface{ ~int | ~string }  // type parameter only: implements comparable (int, string types are strictly comparable)
    interface{ comparable }      // type parameter only: implements comparable (comparable implements itself)
    interface{ ~int | ~[]byte }  // type parameter only: does not implement comparable (slices are not comparable)
    interface{ ~struct{ any } }  // type parameter only: does not implement comparable (field any is not strictly comparable)
    </pre>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top