Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 797 for flagstr (0.12 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	// depends on the driver which runs the analyzer.
    	Flags flag.FlagSet
    
    	// Run applies the analyzer to a package.
    	// It returns an error if the analyzer failed.
    	//
    	// On success, the Run function may return a result
    	// computed by the Analyzer; its type must match ResultType.
    	// The driver makes this result available as an input to
    	// another Analyzer that depends directly on this one (see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		DefaultOffPlugins:      sets.Set[string]{},
    	}
    	server.RegisterAllAdmissionPlugins(options.Plugins)
    	return options
    }
    
    // AddFlags adds flags related to admission for a specific APIServer to the specified FlagSet
    func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
    	if a == nil {
    		return
    	}
    
    	fs.StringSliceVar(&a.EnablePlugins, "enable-admission-plugins", a.EnablePlugins, ""+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/check_test.go

    	var goexperiment, gotypesalias string
    	flags := flag.NewFlagSet("", flag.PanicOnError)
    	flags.StringVar(&conf.GoVersion, "lang", "", "")
    	flags.StringVar(&goexperiment, "goexperiment", "", "")
    	flags.BoolVar(&conf.FakeImportC, "fakeImportC", false, "")
    	flags.StringVar(&gotypesalias, "gotypesalias", "", "")
    	if err := parseFlags(srcs[0], flags); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/go/types/check_test.go

    	var goexperiment, gotypesalias string
    	flags := flag.NewFlagSet("", flag.PanicOnError)
    	flags.StringVar(&conf.GoVersion, "lang", "", "")
    	flags.StringVar(&goexperiment, "goexperiment", "", "")
    	flags.BoolVar(&conf.FakeImportC, "fakeImportC", false, "")
    	flags.StringVar(&gotypesalias, "gotypesalias", "", "")
    	if err := parseFlags(srcs[0], flags); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. cmd/kube-proxy/app/server_test.go

    				// Flag and config get merged with command line flags first.
    				c.Logging.VModule = append([]logsapi.VModuleItem{
    					{
    						FilePattern: "goo.go",
    						Verbosity:   8,
    					},
    				}, c.Logging.VModule...)
    				return c
    			}(),
    		},
    	} {
    		t.Run(name, func(t *testing.T) {
    			options := NewOptions()
    			fs := new(pflag.FlagSet)
    			options.AddFlags(fs)
    			flags := tc.flags
    			if len(tc.config) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/util/cmdutil_test.go

    			flagValue: false,
    			expected:  false,
    		},
    	}
    	for _, tt := range tests {
    		type options struct {
    			foo string
    			bar bool
    		}
    		fakeOptions := &options{}
    		fs := pflag.FlagSet{}
    		fs.StringVar(&fakeOptions.foo, "foo", "", "")
    		fs.BoolVar(&fakeOptions.bar, "bar", false, "")
    
    		t.Run(tt.name, func(t *testing.T) {
    			if tt.flag != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "CMP", argLength: 2, reg: gp2cr, asm: "CMP", typ: "Flags"},     // arg0 compare to arg1
    		{name: "CMPU", argLength: 2, reg: gp2cr, asm: "CMPU", typ: "Flags"},   // arg0 compare to arg1
    		{name: "CMPW", argLength: 2, reg: gp2cr, asm: "CMPW", typ: "Flags"},   // arg0 compare to arg1
    		{name: "CMPWU", argLength: 2, reg: gp2cr, asm: "CMPWU", typ: "Flags"}, // arg0 compare to arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	}
    }
    
    // parseFlags accepts any printf flags.
    func (s *formatState) parseFlags() {
    	for s.nbytes < len(s.format) {
    		switch c := s.format[s.nbytes]; c {
    		case '#', '0', '+', '-', ' ':
    			s.flags = append(s.flags, c)
    			s.nbytes++
    		default:
    			return
    		}
    	}
    }
    
    // scanNum advances through a decimal number if present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. src/cmd/internal/telemetry/telemetry_bootstrap.go

    func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
    func CountFlags(name string, flagSet flag.FlagSet)                        {}
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {}
    func Mode() string                                                        { return "" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/doc/doc_test.go

    		}
    	}
    	// Make sure math/rand does have the symbol.
    	{
    		var flagSet flag.FlagSet
    		err := do(&b, &flagSet, []string{"math/rand.float64"})
    		if err != nil {
    			t.Errorf("unexpected error %q from math/rand.float64", err)
    		}
    	}
    	// Try the shorthand.
    	{
    		var flagSet flag.FlagSet
    		err := do(&b, &flagSet, []string{"rand.float64"})
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
Back to top