Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for src (0.14 sec)

  1. internal/logger/logger.go

    	// Add trim string "{GOROOT}/src/" into trimStrings
    	trimStrings = []string{filepath.Join(runtime.GOROOT(), "src") + string(filepath.Separator)}
    
    	// Add all possible path from GOPATH=path1:path2...:pathN
    	// as "{path#}/src/" into trimStrings
    	for _, goPathString := range goPathList {
    		trimStrings = append(trimStrings, filepath.Join(goPathString, "src")+string(filepath.Separator))
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. 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)
  3. cmd/storage-rest-server.go

    	if ok && runtime.GOOS != "windows" {
    		// Attempt to use splice/sendfile() optimization, A very specific behavior mentioned below is necessary.
    		// See https://github.com/golang/go/blob/f7c5cbb82087c55aa82081e931e0142783700ce8/src/net/sendfile_linux.go#L20
    		// Windows can lock up with this optimization, so we fall back to regular copy.
    		sr, ok := rc.(*sendFileReader)
    		if ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  4. internal/etag/reader.go

    		return &Reader{
    			src:      r,
    			md5:      NewUUIDHash(forceMD5),
    			checksum: etag,
    		}
    	}
    	return &Reader{
    		src:      r,
    		md5:      md5.New(),
    		checksum: etag,
    	}
    }
    
    // Read reads up to len(p) bytes from the underlying
    // io.Reader as specified by the io.Reader interface.
    func (r *Reader) Read(p []byte) (int, error) {
    	n, err := r.src.Read(p)
    	r.readN += int64(n)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. misc/ios/go_ios_exec.go

    			if f.Name() == "testdata" {
    				if err := cp(dst, filepath.Join(src, f.Name())); err != nil {
    					return err
    				}
    			}
    			continue
    		}
    		if err := cp(dst, filepath.Join(src, f.Name())); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func cp(dst, src string) error {
    	out, err := exec.Command("cp", "-a", src, dst).CombinedOutput()
    	if err != nil {
    		os.Stderr.Write(out)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  6. utils/utils_test.go

    	}
    	for _, test := range assertEqualTests {
    		t.Run(test.name, func(t *testing.T) {
    			if out := AssertEqual(test.src, test.dst); test.out != out {
    				t.Errorf("AssertEqual(%v, %v) want: %t, got: %t", test.src, test.dst, test.out, out)
    			}
    		})
    	}
    }
    
    func TestToString(t *testing.T) {
    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. tests/scanner_valuer_test.go

    	return append([]byte("***"), data...), nil
    }
    
    type Num int64
    
    func (i *Num) Scan(src interface{}) error {
    	switch s := src.(type) {
    	case []byte:
    		n, _ := strconv.Atoi(string(s))
    		*i = Num(n)
    	case int64:
    		*i = Num(s)
    	default:
    		return errors.New("Cannot scan NamedInt from " + reflect.ValueOf(src).String())
    	}
    	return nil
    }
    
    type StringsSlice []string
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  8. cmd/object-multipart-handlers.go

    	srcOpts, err = copySrcOpts(ctx, r, srcBucket, srcObject)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	srcOpts.VersionID = vid
    
    	// convert copy src and dst encryption options for GET/PUT calls
    	getOpts := ObjectOptions{VersionID: srcOpts.VersionID}
    	if srcOpts.ServerSideEncryption != nil {
    		getOpts.ServerSideEncryption = encrypt.SSE(srcOpts.ServerSideEncryption)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  9. cmd/erasure-encode.go

    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &parallelWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    		errs:        make([]error, len(writers)),
    	}
    
    	for {
    		var blocks [][]byte
    		n, err := io.ReadFull(src, buf)
    		if err != nil {
    			if !IsErrIgnored(err, []error{
    				io.EOF,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/connections.go

    			for _, c := range wl.Connections.Inbound {
    				fmt.Fprintf(w, "%v\tInbound\t%v\t%v\t%v\n", name, lookupIP(c.ActualDst), lookupIP(c.Src), c.OriginalDst)
    			}
    		}
    		if filter.Direction != "inbound" {
    			for _, c := range wl.Connections.Outbound {
    				fmt.Fprintf(w, "%v\tOutbound\t%v\t%v\t%v\n", name, lookupIP(c.Src), lookupIP(c.ActualDst), lookupIP(c.OriginalDst))
    			}
    		}
    	}
    	return w.Flush()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top