Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 588 for gomod (0.18 sec)

  1. src/runtime/testdata/testexithooks/testexithooks.go

    	f2 := func() { panic("BADBADBAD") }
    	f3 := func() { println("good") }
    	exithook.Add(exithook.Hook{F: f1, RunOnFailure: true})
    	exithook.Add(exithook.Hook{F: f2, RunOnFailure: true})
    	exithook.Add(exithook.Hook{F: f3, RunOnFailure: true})
    	os.Exit(0)
    }
    
    func testHookCallsExit() {
    	f1 := func() { println("ok") }
    	f2 := func() { os.Exit(1) }
    	f3 := func() { println("good") }
    	exithook.Add(exithook.Hook{F: f1, RunOnFailure: true})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial008.py

    
    @app.get("/items/")
    async def read_items(
        q: Union[str, None] = Query(
            default=None,
            title="Query string",
            description="Query string for the items to search in the database that have a good match",
            min_length=3,
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 466 bytes
    - Viewed (0)
  3. docs_src/query_params_str_validations/tutorial008_an_py310.py

    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None,
            Query(
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 498 bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/sys/cpu/cpu_wasm.go

    //go:build wasm
    
    package cpu
    
    // We're compiling the cpu package for an unknown (software-abstracted) CPU.
    // Make CacheLinePad an empty struct and hope that the usual struct alignment
    // rules are good enough.
    
    const cacheLineSize = 0
    
    func initOptions() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 439 bytes
    - Viewed (0)
  5. docs_src/query_params_str_validations/tutorial008_an_py39.py

    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None],
            Query(
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 511 bytes
    - Viewed (0)
  6. docs_src/query_params_str_validations/tutorial010_an_py310.py

        q: Annotated[
            str | None,
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
                pattern="^fixedquery$",
                deprecated=True,
            ),
        ] = None,
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 622 bytes
    - Viewed (0)
  7. platforms/jvm/ear/src/integTest/groovy/org/gradle/plugins/ear/EarPluginIntegrationTest.groovy

            file('bad-lib/file.txt').createFile().write('bad')
            file('good-lib/file.txt').createFile().write('good')
    
            buildFile << '''
    apply plugin: 'ear'
    ear {
       duplicatesStrategy = 'exclude'
       into('lib') {
           from 'bad-lib'
       }
       lib {
           from 'good-lib'
       }
    }'''
    
            when:
            run 'assemble';
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  8. docs_src/query_params_str_validations/tutorial010_an_py39.py

        q: Annotated[
            Union[str, None],
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
                pattern="^fixedquery$",
                deprecated=True,
            ),
        ] = None,
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 635 bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial010_an.py

        q: Annotated[
            Union[str, None],
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
                pattern="^fixedquery$",
                deprecated=True,
            ),
        ] = None,
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 664 bytes
    - Viewed (0)
  10. pkg/kube/version.go

    		// Apparently some clusters don't put proper numbers here. Try GitVersion
    		vp, err := version.ParseGeneric(clusterVersion.GitVersion)
    		if err != nil {
    			// no good
    			return -1
    		}
    		np, err := strconv.Atoi(fmt.Sprintf("%d%d", vp.Major(), vp.Minor()))
    		if err != nil {
    			// no good...
    			return -1
    		}
    		return np
    	}
    	return v
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 23:16:29 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top