Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for src (0.14 sec)

  1. src/cmd/api/api_test.go

    	td, err := os.Open("testdata/src/pkg")
    	if err != nil {
    		t.Fatal(err)
    	}
    	fis, err := td.Readdir(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, fi := range fis {
    		if !fi.IsDir() {
    			continue
    		}
    
    		// TODO(gri) remove extra pkg directory eventually
    		goldenFile := filepath.Join("testdata", "src", "pkg", fi.Name(), "golden.txt")
    		w := NewWalker(nil, "testdata/src/pkg")
    		pkg, _ := w.import_(fi.Name())
    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)
  2. misc/wasm/wasm_exec.js

    					},
    
    					// func copyBytesToGo(dst []byte, src ref) (int, bool)
    					"syscall/js.copyBytesToGo": (sp) => {
    						sp >>>= 0;
    						const dst = loadSlice(sp + 8);
    						const src = loadValue(sp + 32);
    						if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
    							this.mem.setUint8(sp + 48, 0);
    							return;
    						}
    						const toCopy = src.subarray(0, dst.length);
    						dst.set(toCopy);
    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)
  3. src/cmd/cgo/ast.go

    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    	ast1, err := parser.ParseFile(fset, name, src, flags)
    	if err != nil {
    		if list, ok := err.(scanner.ErrorList); ok {
    			// If err is a scanner.ErrorList, its String will print just
    			// the first error and then (+n more errors).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/README.vendor

    Vendoring in std and cmd
    ========================
    
    The Go command maintains copies of external packages needed by the
    standard library in the src/vendor and src/cmd/vendor directories.
    
    There are two modules, std and cmd, defined in src/go.mod and
    src/cmd/go.mod. When a package outside std or cmd is imported
    by a package inside std or cmd, the import path is interpreted
    as if it had a "vendor/" prefix. For example, within "crypto/tls",
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 02 02:20:05 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. .gitignore

    /misc/cgo/life/run.out
    /misc/cgo/stdio/run.out
    /misc/cgo/testso/main
    /pkg/
    /src/*.*/
    /src/cmd/cgo/zdefaultcc.go
    /src/cmd/dist/dist
    /src/cmd/go/internal/cfg/zdefaultcc.go
    /src/cmd/internal/objabi/zbootstrap.go
    /src/go/build/zcgo.go
    /src/go/doc/headscan
    /src/internal/buildcfg/zbootstrap.go
    /src/runtime/internal/sys/zversion.go
    /src/unicode/maketables
    /src/time/tzdata/zzipdata.go
    /test.out
    /test/garbage/*.out
    /test/pass.out
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jun 22 19:44:52 GMT 2023
    - 958 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/cgotest/overlaydir.go

    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    			return err
    		}
    		defer src.Close()
    
    		dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm)
    		if err != nil {
    			return err
    		}
    
    		_, err = io.Copy(dst, src)
    		if closeErr := dst.Close(); err == nil {
    			err = closeErr
    		}
    		return err
    	})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 20:56:09 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    //
    // This function mutates src and returns a normalized map where:
    //   - adjacent fragments are coalesced together
    //   - only the last fragment may be empty
    //   - the endOffset of the last fragment is the total size
    func invertSparseEntries(src []sparseEntry, size int64) []sparseEntry {
    	dst := src[:0]
    	var pre sparseEntry
    	for _, cur := range src {
    		if cur.Length == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. src/all.bash

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    set -e
    if [ ! -f make.bash ]; then
    	echo 'all.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    . ./make.bash "$@" --no-banner
    bash run.bash --no-rebuild
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 11 19:53:58 GMT 2024
    - 377 bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    file. This allows pre-compiled static libraries to be included in the package
    directory and linked properly.
    For example if package foo is in the directory /go/src/foo:
    
    	// #cgo LDFLAGS: -L${SRCDIR}/libs -lfoo
    
    Will be expanded to:
    
    	// #cgo LDFLAGS: -L/go/src/foo/libs -lfoo
    
    When the Go tool sees that one or more Go files use the special import
    "C", it will look for other non-Go files in the directory and compile
    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)
  10. doc/go1.17_spec.html

    	for i := 2; ; i++ {
    		ch <- i  // Send 'i' to channel 'ch'.
    	}
    }
    
    // Copy the values from channel 'src' to channel 'dst',
    // removing those divisible by 'prime'.
    func filter(src <-chan int, dst chan<- int, prime int) {
    	for i := range src {  // Loop over values received from 'src'.
    		if i%prime != 0 {
    			dst <- i  // Send 'i' to channel 'dst'.
    		}
    	}
    }
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top