Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for pathpkg (0.38 sec)

  1. src/cmd/go/internal/modfetch/proxy.go

    	}
    	return b, nil
    }
    
    func (p *proxyRepo) getBody(ctx context.Context, path string) (r io.ReadCloser, redactedURL string, err error) {
    	fullPath := pathpkg.Join(p.url.Path, path)
    
    	target := *p.url
    	target.Path = fullPath
    	target.RawPath = pathpkg.Join(target.RawPath, pathEscape(path))
    
    	resp, err := web.Get(web.DefaultSecurity, &target)
    	if err != nil {
    		return nil, "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. src/cmd/go/internal/fsys/fsys.go

    // allows for virtual overlays on top of the files on disk.
    package fsys
    
    import (
    	"encoding/json"
    	"errors"
    	"fmt"
    	"internal/godebug"
    	"io"
    	"io/fs"
    	"log"
    	"os"
    	pathpkg "path"
    	"path/filepath"
    	"runtime"
    	"runtime/debug"
    	"sort"
    	"strings"
    	"sync"
    	"time"
    )
    
    // Trace emits a trace event for the operation and file path to the trace log,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package modload
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"go/build"
    	"io/fs"
    	"os"
    	pathpkg "path"
    	"path/filepath"
    	"sort"
    	"strings"
    
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/fsys"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/modfetch"
    	"cmd/go/internal/modindex"
    	"cmd/go/internal/par"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/query.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package modload
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"io/fs"
    	"os"
    	pathpkg "path"
    	"slices"
    	"sort"
    	"strings"
    	"sync"
    	"time"
    
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/imports"
    	"cmd/go/internal/modfetch"
    	"cmd/go/internal/modfetch/codehost"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  5. src/syscall/fs_wasip1.go

    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_unlink_file(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    func Rmdir(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_remove_directory(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. src/go/build/read.go

    	trimSpace := func() {
    		trim := strings.TrimLeftFunc(args, unicode.IsSpace)
    		trimBytes(len(args) - len(trim))
    	}
    
    	var list []fileEmbed
    	for trimSpace(); args != ""; trimSpace() {
    		var path string
    		pathPos := pos
    	Switch:
    		switch args[0] {
    		default:
    			i := len(args)
    			for j, c := range args {
    				if unicode.IsSpace(c) {
    					i = j
    					break
    				}
    			}
    			path = args[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/os/types_windows.go

    	if fs.path == "" {
    		// already done
    		return nil
    	}
    	var path string
    	if fs.appendNameToPath {
    		path = fixLongPath(fs.path + `\` + fs.name)
    	} else {
    		path = fs.path
    	}
    	pathp, err := syscall.UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    
    	// Per https://learn.microsoft.com/en-us/windows/win32/fileio/reparse-points-and-file-operations,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_386.go

    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	pathp, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. pkg/volume/util/subpath/subpath_windows.go

    func lockPath(path string) (uintptr, error) {
    	if len(path) == 0 {
    		return uintptr(syscall.InvalidHandle), syscall.ERROR_FILE_NOT_FOUND
    	}
    	pathp, err := syscall.UTF16PtrFromString(path)
    	if err != nil {
    		return uintptr(syscall.InvalidHandle), err
    	}
    	access := uint32(syscall.GENERIC_READ)
    	sharemode := uint32(syscall.FILE_SHARE_READ)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    func Futimesat(dirfd int, path string, tv []Timeval) error {
    	pathp, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	if tv == nil {
    		return futimesat(dirfd, pathp, nil)
    	}
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
Back to top