Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for pkgPatterns (0.31 sec)

  1. src/cmd/go/internal/modget/get.go

    			continue
    		}
    
    		break
    	}
    
    	r.checkWildcardVersions(ctx)
    
    	var pkgPatterns []string
    	for _, q := range queries {
    		if q.matchesPackages {
    			pkgPatterns = append(pkgPatterns, q.pattern)
    		}
    	}
    	r.checkPackageProblems(ctx, pkgPatterns)
    
    	// Everything succeeded. Update go.mod.
    	oldReqs := reqsFromGoMod(modload.ModFile())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  2. src/cmd/internal/pkgpattern/pkgpattern.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pkgpattern
    
    import (
    	"regexp"
    	"strings"
    )
    
    // Note: most of this code was originally part of the cmd/go/internal/search
    // package; it was migrated here in order to support the use case of
    // commands other than cmd/go that need to accept package pattern args.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/search.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package load
    
    import (
    	"path/filepath"
    	"strings"
    
    	"cmd/go/internal/search"
    	"cmd/internal/pkgpattern"
    )
    
    // MatchPackage(pattern, cwd)(p) reports whether package p matches pattern in the working directory cwd.
    func MatchPackage(pattern, cwd string) func(*Package) bool {
    	switch {
    	case search.IsRelativePath(pattern):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/search.go

    	defer span.Done()
    
    	m.Pkgs = []string{}
    
    	isMatch := func(string) bool { return true }
    	treeCanMatch := func(string) bool { return true }
    	if !m.IsMeta() {
    		isMatch = pkgpattern.MatchPattern(m.Pattern())
    		treeCanMatch = pkgpattern.TreeCanMatchPattern(m.Pattern())
    	}
    
    	var mu sync.Mutex
    	have := map[string]bool{
    		"builtin": true, // ignore pseudo-package that exists only for documentation
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/covdata/covdata.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"cmd/internal/cov"
    	"cmd/internal/pkgpattern"
    	"cmd/internal/telemetry"
    	"flag"
    	"fmt"
    	"os"
    	"runtime"
    	"runtime/pprof"
    	"strings"
    )
    
    var verbflag = flag.Int("v", 0, "Verbose trace output level")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/list.go

    	"runtime"
    	"strings"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/modinfo"
    	"cmd/go/internal/search"
    	"cmd/internal/pkgpattern"
    
    	"golang.org/x/mod/module"
    )
    
    type ListMode int
    
    const (
    	ListU ListMode = 1 << iota
    	ListRetracted
    	ListDeprecated
    	ListVersions
    	ListRetractedVersions
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/search/search.go

    		m.Pkgs = []string{m.pattern}
    		return
    	}
    
    	match := func(string) bool { return true }
    	treeCanMatch := func(string) bool { return true }
    	if !m.IsMeta() {
    		match = pkgpattern.MatchPattern(m.pattern)
    		treeCanMatch = pkgpattern.TreeCanMatchPattern(m.pattern)
    	}
    
    	have := map[string]bool{
    		"builtin": true, // ignore pseudo-package that exists only for documentation
    	}
    	if !cfg.BuildContext.CgoEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modget/query.go

    		patternIsLocal: filepath.IsAbs(pattern) || search.IsRelativePath(pattern),
    		version:        version,
    	}
    	if strings.Contains(q.pattern, "...") {
    		q.matchWildcard = pkgpattern.MatchPattern(q.pattern)
    		q.canMatchWildcardInModule = pkgpattern.TreeCanMatchPattern(q.pattern)
    	}
    	if err := q.validate(); err != nil {
    		return q, err
    	}
    	return q, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/internal/pkgpattern/pat_test.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pkgpattern
    
    import (
    	"strings"
    	"testing"
    )
    
    var matchPatternTests = `
    	pattern ...
    	match foo
    
    	pattern net
    	match net
    	not net/http
    
    	pattern net/http
    	match net/http
    	not net
    
    	pattern net...
    	match net net/http netchan
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/query.go

    	"cmd/go/internal/imports"
    	"cmd/go/internal/modfetch"
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/modinfo"
    	"cmd/go/internal/search"
    	"cmd/go/internal/str"
    	"cmd/go/internal/trace"
    	"cmd/internal/pkgpattern"
    
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    )
    
    // Query looks up a revision of a given module given a version query string.
    // The module must be a complete module path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
Back to top