Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 267 for gomod (0.04 sec)

  1. src/cmd/go/testdata/script/vendor_import.txt

    vend/vendor/strings []
    vend/vendor/vend/dir1/dir2 []
    vend/x/vendor/p []
    vend/x/vendor/p/p [notfound]
    vend/x/vendor/r []
    -- vend/bad.go --
    package vend
    
    import _ "r"
    -- vend/dir1/dir1.go --
    package dir1
    -- vend/good.go --
    package vend
    
    import _ "p"
    -- vend/hello/hello.go --
    package main
    
    import (
    	"fmt"
    	"strings" // really ../vendor/strings
    )
    
    func main() {
    	fmt.Printf("%s\n", strings.Msg)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 21:14:01 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial008_py310.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: 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
    - 434 bytes
    - Viewed (0)
  3. docs_src/query_params_str_validations/tutorial008_an.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
    - 540 bytes
    - Viewed (0)
  4. src/encoding/gob/timing_test.go

    		return &Bench{7, 3.2, "now is the time", bytes.Repeat([]byte("for all good men"), 100)}
    	}, func() (r io.Reader, w io.Writer, err error) {
    		r, w, err = os.Pipe()
    		return
    	})
    }
    
    func BenchmarkEndToEndByteBuffer(b *testing.B) {
    	benchmarkEndToEnd(b, func() any {
    		return &Bench{7, 3.2, "now is the time", bytes.Repeat([]byte("for all good men"), 100)}
    	}, func() (r io.Reader, w io.Writer, err error) {
    		var buf bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 07:16:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/generate.txt

    # Test go generate handles a simple command
    go generate ./generate/simple.go
    stdout 'Success'
    
    # Test go generate handles a command alias
    go generate './generate/alias.go'
    stdout 'Now is the time for all good men'
    
    # Test go generate's variable substitution
    go generate './generate/substitution.go'
    stdout $GOARCH' substitution.go:7 pabc xyzp/substitution.go/123'
    
    # Test go generate's run and skip flags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 03:24:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. buildscripts/checkdeps.sh

    	SunOS)
    		ARCH=$(isainfo -k)
    		;;
    	esac
    }
    
    ## FIXME:
    ## In OSX, 'readlink -f' option does not exist, hence
    ## we have our own readlink -f behavior here.
    ## Once OSX has the option, below function is good enough.
    ##
    ## readlink() {
    ##     return /bin/readlink -f "$1"
    ## }
    ##
    readlink() {
    	TARGET_FILE=$1
    
    	cd $(dirname $TARGET_FILE)
    	TARGET_FILE=$(basename $TARGET_FILE)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 05:08:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/internal/trace/internal/oldtrace/parser_test.go

    			t.Fatal(err)
    		}
    		r := bytes.NewReader(data)
    		v, err := version.ReadHeader(r)
    		if err != nil {
    			t.Errorf("failed to parse good trace %s: %s", f.Name(), err)
    		}
    		trace, err := Parse(r, v)
    		switch {
    		case strings.HasSuffix(f.Name(), "_good"):
    			if err != nil {
    				t.Errorf("failed to parse good trace %v: %v", f.Name(), err)
    			}
    			checkTrace(t, int(v), trace)
    		case strings.HasSuffix(f.Name(), "_unordered"):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. internal/cachevalue/cache.go

    // Opts contains options for the cache.
    type Opts struct {
    	// When set to true, return the last cached value
    	// even if updating the value errors out.
    	// Returns the last good value AND the error.
    	ReturnLastGood bool
    
    	// If NoWait is set, Get() will return the last good value,
    	// if TTL has expired but 2x TTL has not yet passed,
    	// but will fetch a new value in the background.
    	NoWait bool
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/DependencyResolutionFromTaskContextIntegrationTest.groovy

                        outputFile.text = "good"
                    }
                }
    
                subprojects {
                    apply plugin: 'base'
                    configurations {
                        myconf
                    }
                    tasks.withType(GoodTask).configureEach {
                        outputFile = layout.buildDirectory.file("good.txt")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. 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)
Back to top