Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for myself (0.22 sec)

  1. src/cmd/cgo/doc.go

    executable itself. Keeping cmd/link simple means we cannot possibly
    implement the full semantics of the host linker, so the kinds of
    objects that can be linked directly into the binary is limited (other
    code can only be used as a dynamic library). On the other hand, when
    using internal linking, cmd/link can generate Go binaries by itself.
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    			}
    		}
    	}
    }
    
    func TestNewReaderSizeIdempotent(t *testing.T) {
    	const BufSize = 1000
    	b := NewReaderSize(strings.NewReader("hello world"), BufSize)
    	// Does it recognize itself?
    	b1 := NewReaderSize(b, BufSize)
    	if b1 != b {
    		t.Error("NewReaderSize did not detect underlying Reader")
    	}
    	// Does it wrap if existing buffer is too small?
    	b2 := NewReaderSize(b, 2*BufSize)
    	if b2 == b {
    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)
  3. doc/go1.17_spec.html

    }
    </pre>
    
    <p>
    An interface type <code>T</code> may not embed itself
    or any interface type that embeds <code>T</code>, recursively.
    </p>
    
    <pre>
    // illegal: Bad cannot embed itself
    type Bad interface {
    	Bad
    }
    
    // illegal: Bad1 cannot embed itself using Bad2
    type Bad1 interface {
    	Bad2
    }
    type Bad2 interface {
    	Bad1
    }
    </pre>
    
    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)
  4. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const RUSAGE_CHILDREN = -1
    pkg syscall (netbsd-arm64-cgo), const RUSAGE_CHILDREN ideal-int
    pkg syscall (netbsd-arm64-cgo), const RUSAGE_SELF = 0
    pkg syscall (netbsd-arm64-cgo), const RUSAGE_SELF ideal-int
    pkg syscall (netbsd-arm64-cgo), const S_ARCH1 = 65536
    pkg syscall (netbsd-arm64-cgo), const S_ARCH1 ideal-int
    pkg syscall (netbsd-arm64-cgo), const S_ARCH2 = 131072
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  5. src/archive/zip/register.go

    import (
    	"compress/flate"
    	"errors"
    	"io"
    	"sync"
    )
    
    // A Compressor returns a new compressing writer, writing to w.
    // The WriteCloser's Close method must be used to flush pending data to w.
    // The Compressor itself must be safe to invoke from multiple goroutines
    // simultaneously, but each returned writer will be used only by
    // one goroutine at a time.
    type Compressor func(w io.Writer) (io.WriteCloser, error)
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    //int F(void) { return 1; }
    import "C"
    import (
    	"fmt"
    	"os"
    )
    
    func F() int { return int(C.F()) }
    
    func main() {
    	if x := int(C.F()); x != 1 {
    		fatal("x = %d, want 1", x)
    	}
    
    	// Open this file itself and verify that the first few characters are
    	// as expected.
    	f := Fopen("main.go", "r")
    	if f.Swigcptr() == 0 {
    		fatal("fopen failed")
    	}
    	if Fgetc(f) != '/' || Fgetc(f) != '/' || Fgetc(f) != ' ' || Fgetc(f) != 'C' {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 975 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/buildid_linux.go

    // one.
    
    import (
    	"bytes"
    	"debug/elf"
    	"os"
    	"testing"
    )
    
    func testBuildID(t *testing.T) {
    	f, err := elf.Open("/proc/self/exe")
    	if err != nil {
    		if os.IsNotExist(err) {
    			t.Skip("no /proc/self/exe")
    		}
    		t.Fatal("opening /proc/self/exe: ", err)
    	}
    	defer f.Close()
    
    	c := 0
    sections:
    	for i, s := range f.Sections {
    		if s.Type != elf.SHT_NOTE {
    			continue
    		}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. src/bytes/buffer.go

    // returning a slice containing the data up to and including the delimiter.
    // If ReadBytes encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often io.EOF).
    // ReadBytes returns err != nil if and only if the returned data does not end in
    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    	slice, err := b.readSlice(delim)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/arch/arm.go

    	return false
    }
    
    // ARMMRCOffset implements the peculiar encoding of the MRC and MCR instructions.
    // The difference between MRC and MCR is represented by a bit high in the word, not
    // in the usual way by the opcode itself. Asm must use AMRC for both instructions, so
    // we return the opcode for MRC so that asm doesn't need to import obj/arm.
    func ARMMRCOffset(op obj.As, cond string, x0, x1, x2, x3, x4, x5 int64) (offset int64, op0 obj.As, ok bool) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg syscall (darwin-386), const RTV_SPIPE ideal-int
    pkg syscall (darwin-386), const RTV_SSTHRESH ideal-int
    pkg syscall (darwin-386), const RUSAGE_CHILDREN ideal-int
    pkg syscall (darwin-386), const RUSAGE_SELF ideal-int
    pkg syscall (darwin-386), const SCM_CREDS ideal-int
    pkg syscall (darwin-386), const SCM_RIGHTS ideal-int
    pkg syscall (darwin-386), const SCM_TIMESTAMP ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top