Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 785 for gomod (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. test/ken/array.go

    // generate bounds error with ptr dynamic
    func testpdfault() {
    	a := make([]int, 100)
    
    	print("good\n")
    	for i := 0; i < 100; i++ {
    		a[i] = 0
    	}
    	print("should fault\n")
    	a[100] = 0
    	print("bad\n")
    }
    
    // generate bounds error with ptr fixed
    func testfdfault() {
    	var a [80]int
    
    	print("good\n")
    	for i := 0; i < 80; i++ {
    		a[i] = 0
    	}
    	print("should fault\n")
    	x := 80
    	a[x] = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  8. test/switch4.go

    package main
    
    type I interface {
    	M()
    }
    
    func bad() {
    
    	i5 := 5
    	switch i5 {
    	case 5:
    		fallthrough // ERROR "cannot fallthrough final case in switch"
    	}
    }
    
    func good() {
    	var i interface{}
    	var s string
    
    	switch i {
    	case s:
    	}
    
    	switch s {
    	case i:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 04:35:09 UTC 2013
    - 526 bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/buildtag/buildtag3.go

    // Copyright 2020 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.
    
    // This file contains tests for the buildtag checker.
    
    //go:build good
    // ERRORNEXT "[+]build lines do not match //go:build condition"
    // +build bad
    
    package testdata
    
    var _ = `
    // +build notacomment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:48 UTC 2021
    - 362 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/mono_test.go

    	}
    	typecheck(src, &conf, nil)
    	if buf.Len() == 0 {
    		return nil
    	}
    	return errors.New(strings.TrimRight(buf.String(), "\n"))
    }
    
    func TestMonoGood(t *testing.T) {
    	for i, good := range goods {
    		if err := checkMono(t, good); err != nil {
    			t.Errorf("%d: unexpected failure: %v", i, err)
    		}
    	}
    }
    
    func TestMonoBad(t *testing.T) {
    	for i, bad := range bads {
    		if err := checkMono(t, bad); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top