Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CheckFilePath (0.14 sec)

  1. src/cmd/vendor/golang.org/x/mod/module/module.go

    // (The excluded punctuation characters, " * < > ? ` ' | / \ and :,
    // have special meanings in certain shells or operating systems.)
    //
    // CheckFilePath may be less restrictive in the future, but see the
    // top-level package documentation for additional information about
    // subtleties of Unicode.
    func CheckFilePath(path string) error {
    	if err := checkPath(path, filePath); err != nil {
    		return &InvalidPathError{Kind: "file", Path: path, Err: err}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    // version suffix consistent with the version (see
    // [golang.org/x/mod/module.Check]). The part of the file path after the
    // "<module>@<version>/" prefix must be valid (see
    // [golang.org/x/mod/module.CheckFilePath]).
    //
    // • No two file paths may be equal under Unicode case-folding (see
    // [strings.EqualFold]).
    //
    // • A go.mod file may or may not appear in the top-level directory. If present,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    // can't or won't be included in modules and therefore shouldn't be treated
    // as existing for embedding.
    func isBadEmbedName(name string) bool {
    	if err := module.CheckFilePath(name); err != nil {
    		return true
    	}
    	switch name {
    	// Empty string should be impossible but make it bad.
    	case "":
    		return true
    	// Version control directories won't be present in module.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top