Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for pathpkg (0.17 sec)

  1. src/cmd/go/internal/load/pkg.go

    func (p *Package) exeFromImportPath() string {
    	_, elem := pathpkg.Split(p.ImportPath)
    	if cfg.ModulesEnabled {
    		// If this is example.com/mycmd/v2, it's more useful to
    		// install it as mycmd than as v2. See golang.org/issue/24667.
    		if elem != p.ImportPath && isVersionElement(elem) {
    			_, elem = pathpkg.Split(pathpkg.Dir(p.ImportPath))
    		}
    	}
    	return elem
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K 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/load.go

    // if those packages are not found in existing dependencies of the main module.
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"go/build"
    	"internal/diff"
    	"io/fs"
    	"maps"
    	"os"
    	"path"
    	pathpkg "path"
    	"path/filepath"
    	"runtime"
    	"slices"
    	"sort"
    	"strings"
    	"sync"
    	"sync/atomic"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/fsys"
    	"cmd/go/internal/gover"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  5. src/go/build/build.go

    	"go/ast"
    	"go/build/constraint"
    	"go/doc"
    	"go/token"
    	"internal/buildcfg"
    	"internal/godebug"
    	"internal/goroot"
    	"internal/goversion"
    	"internal/platform"
    	"io"
    	"io/fs"
    	"os"
    	"os/exec"
    	pathpkg "path"
    	"path/filepath"
    	"runtime"
    	"slices"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    	_ "unsafe" // for linkname
    )
    
    // A Context specifies the supporting context for a build.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/covdata/covdata.go

    var memprofileflag = flag.String("memprofile", "", "Write memory profile to specified file")
    var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value")
    
    var matchpkg func(name string) bool
    
    var atExitFuncs []func()
    
    func atExit(f func()) {
    	atExitFuncs = append(atExitFuncs, f)
    }
    
    func Exit(code int) {
    	for i := len(atExitFuncs) - 1; i >= 0; i-- {
    		f := atExitFuncs[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    func Chdir(path string) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    	return SetCurrentDirectory(pathp)
    }
    
    func Mkdir(path string, mode uint32) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    	return CreateDirectory(pathp, nil)
    }
    
    func Rmdir(path string) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top