Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 384 for gopack (0.1 sec)

  1. src/cmd/go/scriptreadme_test.go

    a small script engine configured in ../../script_test.go (not the system shell).
    
    The scripts' supporting files are unpacked relative to $GOPATH/src
    (aka $WORK/gopath/src) and then the script begins execution in that directory as
    well. Thus the example above runs in $WORK/gopath/src with GOPATH=$WORK/gopath
    and $WORK/gopath/src/hello.go containing the listed contents.
    
    {{.Language}}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_run_path.txt

    # Test that go run does not get confused by conflict
    # between go.mod's module path and what you'd
    # expect from GOPATH. golang.org/issue/26046.
    
    env GO111MODULE=on
    
    cd $GOPATH/src/example.com/hello
    go run main.go
    
    -- $GOPATH/src/example.com/hello/go.mod --
    module example.com/hello/v2
    
    -- $GOPATH/src/example.com/hello/main.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 18 18:22:51 UTC 2018
    - 359 bytes
    - Viewed (0)
  3. pkg/kubelet/container/testing/mockdirentry.go

    */
    
    // Code generated by MockGen.
    // Source: os (interfaces: DirEntry)
    
    package testing
    
    import (
    	fs "io/fs"
    	reflect "reflect"
    
    	gomock "go.uber.org/mock/gomock"
    )
    
    // MockDirEntry is a mock of DirEntry interface.
    type MockDirEntry struct {
    	ctrl     *gomock.Controller
    	recorder *MockDirEntryMockRecorder
    }
    
    // MockDirEntryMockRecorder is the mock recorder for MockDirEntry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/list_gomod_in_gopath.txt

    # Issue 46119
    
    # When a module is inside a GOPATH workspace, Package.Root should be set to
    # Module.Dir instead of $GOPATH/src.
    
    env GOPATH=$WORK/tmp
    cd $WORK/tmp/src/test
    
    go list -f {{.Root}}
    stdout ^$PWD$
    
    # Were we really inside a GOPATH workspace?
    env GO111MODULE=off
    go list -f {{.Root}}
    stdout ^$WORK/tmp$
    
    -- $WORK/tmp/src/test/go.mod --
    module test
    
    -- $WORK/tmp/src/test/main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 16:15:28 UTC 2021
    - 421 bytes
    - Viewed (0)
  5. pkg/kubelet/server/stats/testing/mock_summary_provider.go

    //
    
    // Package testing is a generated GoMock package.
    package testing
    
    import (
    	context "context"
    	reflect "reflect"
    
    	gomock "go.uber.org/mock/gomock"
    	v1alpha1 "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    )
    
    // MockSummaryProvider is a mock of SummaryProvider interface.
    type MockSummaryProvider struct {
    	ctrl     *gomock.Controller
    	recorder *MockSummaryProviderMockRecorder
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/go/script_test.go

    	must(os.MkdirAll(filepath.Join(work, "tmp"), 0777))
    	must(s.Setenv(tempEnvName(), filepath.Join(work, "tmp")))
    
    	gopath := filepath.Join(work, "gopath")
    	must(s.Setenv("GOPATH", gopath))
    	gopathSrc := filepath.Join(gopath, "src")
    	must(os.MkdirAll(gopathSrc, 0777))
    	must(s.Chdir(gopathSrc))
    	return telemetryDir
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/README

    a small script engine configured in ../../script_test.go (not the system shell).
    
    The scripts' supporting files are unpacked relative to $GOPATH/src
    (aka $WORK/gopath/src) and then the script begins execution in that directory as
    well. Thus the example above runs in $WORK/gopath/src with GOPATH=$WORK/gopath
    and $WORK/gopath/src/hello.go containing the listed contents.
    
    Each line of a script is parsed into a sequence of space-separated command
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/list_gofile_in_goroot.txt

    go list .
    [!GOOS:windows] stdout ^_$WORK/goroot/src$
    [GOOS:windows] stdout goroot/src$
    
    # switch to GOPATH/src
    cd $GOPATH/src
    
    # GO111MODULE=off,GOPATH
    env GO111MODULE=off
    go list ./...
    [!GOOS:windows] stdout ^_$WORK/gopath/src$
    [GOOS:windows] stdout gopath/src$
    
    go list all
    ! stdout gopath/src
    
    -- $WORK/goroot/src/go.mod --
    module std
    
    go 1.14
    -- $WORK/goroot/src/foo.go --
    package foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/vendor_test_issue11864.txt

    package t
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx_test.go --
    package tx_test
    
    import _ "vendor.org/p"
    import _ "vendor.org/p1"
    import "testing"
    
    func TestNop(t *testing.T) {}
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx.go --
    package tx
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/p1/p1.go --
    package p1 // import "vendor.org/p1"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_download_partial.txt

    # if there is an error extracting the zip file.
    rm $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    cp empty $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.zip
    ! go mod download
    stderr 'not a valid zip file'
    ! exists $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.partial
    
    -- go.mod --
    module m
    
    go 1.14
    
    require rsc.io/quote v1.5.2
    
    -- use.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 10 19:08:19 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top