Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for exampleValue (0.3 sec)

  1. src/flag/example_value_test.go

    }
    
    func (v URLValue) Set(s string) error {
    	if u, err := url.Parse(s); err != nil {
    		return err
    	} else {
    		*v.URL = *u
    	}
    	return nil
    }
    
    var u = &url.URL{}
    
    func ExampleValue() {
    	fs := flag.NewFlagSet("ExampleValue", flag.ExitOnError)
    	fs.Var(&URLValue{u}, "url", "URL to parse")
    
    	fs.Parse([]string{"-url", "https://golang.org/pkg/flag/"})
    	fmt.Printf(`{scheme: %q, host: %q, path: %q}`, u.Scheme, u.Host, u.Path)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 21 23:32:53 UTC 2018
    - 845 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1beta1.CustomResourceDefinition.json

            "definitions": {
              "definitionsKey": {}
            },
            "externalDocs": {
              "description": "descriptionValue",
              "url": "urlValue"
            },
            "example": "exampleValue",
            "nullable": true,
            "x-kubernetes-preserve-unknown-fields": true,
            "x-kubernetes-embedded-resource": true,
            "x-kubernetes-int-or-string": true,
            "x-kubernetes-list-map-keys": [
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1beta1.CustomResourceDefinition.yaml

          definitions:
            definitionsKey: {}
          dependencies:
            dependenciesKey:
            - <no json tag> PropertyValue
          description: descriptionValue
          enum:
          - enumValue
          example: exampleValue
          exclusiveMaximum: true
          exclusiveMinimum: true
          externalDocs:
            description: descriptionValue
            url: urlValue
          format: formatValue
          id: idValue
          items:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1.CustomResourceDefinition.yaml

              definitionsKey: {}
            dependencies:
              dependenciesKey:
              - <no json tag> PropertyValue
            description: descriptionValue
            enum:
            - enumValue
            example: exampleValue
            exclusiveMaximum: true
            exclusiveMinimum: true
            externalDocs:
              description: descriptionValue
              url: urlValue
            format: formatValue
            id: idValue
            items:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/running-builds/introduction/command_line_interface_basics.adoc

    [[disambiguate_task_options_from_built_in_options]]
    === Specify options for tasks
    To pass an option to a task, prefix the option name with `--` after the task name:
    
    ----
    $ gradle taskName --exampleOption=exampleValue
    ----
    
    Consult the <<command_line_interface.adoc#command_line_interface,Gradle Command Line Interface reference>> to learn more.
    
    [.text-right]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 18:33:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/testdata/HEAD/apiextensions.k8s.io.v1.CustomResourceDefinition.json

                  "definitionsKey": {}
                },
                "externalDocs": {
                  "description": "descriptionValue",
                  "url": "urlValue"
                },
                "example": "exampleValue",
                "nullable": true,
                "x-kubernetes-preserve-unknown-fields": true,
                "x-kubernetes-embedded-resource": true,
                "x-kubernetes-int-or-string": true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		exampleValue := "normal-value"
    		if o.GetName() == "replicas-test2.example.com" {
    			exampleValue = "special-value"
    		}
    		return validating.ValidateResult{
    			AuditAnnotations: []validating.PolicyAuditAnnotation{
    				{
    					Key:    "example-key",
    					Value:  exampleValue,
    					Action: validating.AuditAnnotationActionPublish,
    				},
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/reference/command_line_interface.adoc

    [[sec:disambiguate_task_options_from_built_in_options]]
    === Specify options for tasks
    To pass an option to a task, prefix the option name with `--` after the task name:
    
    ----
    $ gradle exampleTask --exampleOption=exampleValue
    ----
    
    ==== Disambiguate task options from built-in options
    Gradle does not prevent tasks from registering options that conflict with Gradle's built-in options, like `--profile` or `--help`.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. src/net/url/example_test.go

    	query, err := url.QueryUnescape(escapedQuery)
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(query)
    
    	// Output:
    	// my/cool+blog&about,stuff
    }
    
    func ExampleValues() {
    	v := url.Values{}
    	v.Set("name", "Ava")
    	v.Add("friend", "Jess")
    	v.Add("friend", "Sarah")
    	v.Add("friend", "Zoe")
    	// v.Encode() == "name=Ava&friend=Jess&friend=Sarah&friend=Zoe"
    	fmt.Println(v.Get("name"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.2K bytes
    - Viewed (0)
Back to top