Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for 2023 (0.15 sec)

  1. src/archive/tar/example_test.go

    // Copyright 2013 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 tar_test
    
    import (
    	"archive/tar"
    	"bytes"
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/loong64enc3.s

    // Copyright 2022 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.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT asmtest(SB),DUPOK|NOSPLIT,$0
    	MOVW	$65536(R4), R5			// 1e020014de03800385f81000
    	MOVW	$4096(R4), R5 			// 3e000014de03800385f81000
    	MOVV	$65536(R4), R5			// 1e020014de03800385f81000
    	MOVV	$4096(R4), R5			// 3e000014de03800385f81000
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sat May 14 23:57:43 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/duperror.s

    // Copyright 2022 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.
    
    TEXT foo(SB), 0, $0
    	RET
    TEXT foo(SB), 0, $0 // ERROR "symbol foo redeclared"
    	RET
    
    GLOBL bar(SB), 0, $8
    GLOBL bar(SB), 0, $8 // ERROR "symbol bar redeclared"
    
    DATA bar+0(SB)/8, $0
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 05 23:21:07 GMT 2022
    - 404 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cthread_unix.c

    // Copyright 2013 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.
    
    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
    
    #include <pthread.h>
    #include "_cgo_export.h"
    
    static void*
    addThread(void *p)
    {
    	int i, max;
    	
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		Add(i);
    	return 0;
    }
    
    void
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/amd64dynlinkerror.s

    // Copyright 2021 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.
    
    // Test to make sure that if we use R15 after it is clobbered by
    // a global variable access while dynamic linking, we get an error.
    // See issue 43661.
    
    TEXT ·a1(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	MOVL $0, R15
    	RET
    TEXT ·a2(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 15 20:45:41 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. src/bytes/compare_test.go

    // Copyright 2013 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 bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"testing"
    )
    
    var compareTests = []struct {
    	a, b []byte
    	i    int
    }{
    	{[]byte(""), []byte(""), 0},
    	{[]byte("a"), []byte(""), 1},
    	{[]byte(""), []byte("a"), -1},
    	{[]byte("abc"), []byte("abc"), 0},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/ppc64_p10.s

    // Copyright 2022 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.
    
    // This contains the valid opcode combinations available
    // in cmd/internal/obj/ppc64/asm9.go which exist for
    // POWER10/ISA 3.1.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT asmtest(SB), DUPOK|NOSPLIT, $0
    	BRD R1, R2                              // 7c220176
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 23 20:52:57 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. src/bufio/scan_test.go

    // Copyright 2013 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 bufio_test
    
    import (
    	. "bufio"
    	"bytes"
    	"errors"
    	"io"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    )
    
    const smallMaxTokenSize = 256 // Much smaller for more efficient testing.
    
    // Test white space table matches the Unicode definition.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  9. doc/go_mem.html

    <!--{
    	"Title": "The Go Memory Model",
    	"Subtitle": "Version of June 6, 2022",
    	"Path": "/ref/mem"
    }-->
    
    <style>
    p.rule {
      font-style: italic;
    }
    </style>
    
    <h2 id="introduction">Introduction</h2>
    
    <p>
    The Go memory model specifies the conditions under which
    reads of a variable in one goroutine can be guaranteed to
    observe values produced by writes to the same variable in a different goroutine.
    </p>
    
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  10. src/cmd/api/testdata/src/pkg/p4/p4.go

    // Copyright 2021 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 p4
    
    type Pair[T1 interface{ M() }, T2 ~int] struct {
    	f1 T1
    	f2 T2
    }
    
    func NewPair[T1 interface{ M() }, T2 ~int](v1 T1, v2 T2) Pair[T1, T2] {
    	return Pair[T1, T2]{f1: v1, f2: v2}
    }
    
    func (p Pair[X1, _]) First() X1 {
    	return p.f1
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 552 bytes
    - Viewed (0)
Back to top