Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for newCounter (2.7 sec)

  1. src/go/types/pointer.go

    // license that can be found in the LICENSE file.
    
    package types
    
    // A Pointer represents a pointer type.
    type Pointer struct {
    	base Type // element type
    }
    
    // NewPointer returns a new pointer type for the given element (base) type.
    func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }
    
    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 761 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/pointer.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    // A Pointer represents a pointer type.
    type Pointer struct {
    	base Type // element type
    }
    
    // NewPointer returns a new pointer type for the given element (base) type.
    func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }
    
    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 635 bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/metrics/metrics_test.go

    	if err != nil {
    		t.Fatalf("AddPodToVolume failed. Expected: <no error> Actual: <%v>", err)
    	}
    
    	mounter, err := fakePlugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{})
    	if err != nil {
    		t.Fatalf("NewMounter failed. Expected: <no error> Actual: <%v>", err)
    	}
    
    	mapper, err := fakePlugin.NewBlockVolumeMapper(volumeSpec, pod, volume.VolumeOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/go/doc/testdata/issue22856.1.golden

    	func NewSliceOfSlice() [][]T
    
    
    TYPES
    	// 
    	type T struct{}
    
    	// 
    	func New() T
    
    	// 
    	func NewArray() [1]T
    
    	// 
    	func NewPointer() *T
    
    	// 
    	func NewPointerArray() [1]*T
    
    	// 
    	func NewPointerOfPointer() **T
    
    	// 
    	func NewPointerSlice() []*T
    
    	// 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 16:37:37 UTC 2018
    - 654 bytes
    - Viewed (0)
  5. src/go/types/typestring_test.go

    	for _, test := range []struct {
    		typ  Type
    		this *Package
    		want string
    	}{
    		{nil, nil, "<nil>"},
    		{pT, nil, "p.T"},
    		{pT, p, "T"},
    		{pT, q, "p.T"},
    		{NewPointer(pT), p, "*T"},
    		{NewPointer(pT), q, "*p.T"},
    	} {
    		qualifier := func(pkg *Package) string {
    			if pkg != test.this {
    				return pkg.Name()
    			}
    			return ""
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/go/doc/testdata/issue22856.0.golden

    	func NewSliceOfSlice() [][]T
    
    
    TYPES
    	// 
    	type T struct{}
    
    	// 
    	func New() T
    
    	// 
    	func NewArray() [1]T
    
    	// 
    	func NewPointer() *T
    
    	// 
    	func NewPointerArray() [1]*T
    
    	// 
    	func NewPointerOfPointer() **T
    
    	// 
    	func NewPointerSlice() []*T
    
    	// 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 16:37:37 UTC 2018
    - 654 bytes
    - Viewed (0)
  7. src/go/doc/testdata/issue22856.2.golden

    	func NewSliceOfSlice() [][]T
    
    
    TYPES
    	// 
    	type T struct{}
    
    	// 
    	func New() T
    
    	// 
    	func NewArray() [1]T
    
    	// 
    	func NewPointer() *T
    
    	// 
    	func NewPointerArray() [1]*T
    
    	// 
    	func NewPointerOfPointer() **T
    
    	// 
    	func NewPointerSlice() []*T
    
    	// 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 16:37:37 UTC 2018
    - 654 bytes
    - Viewed (0)
  8. pkg/volume/noop_expandable_plugin.go

    	return true
    }
    
    func (n *noopExpandableVolumePluginInstance) RequiresRemount(spec *Spec) bool {
    	return false
    }
    
    func (n *noopExpandableVolumePluginInstance) NewMounter(spec *Spec, podRef *v1.Pod, opts VolumeOptions) (Mounter, error) {
    	return nil, nil
    }
    
    func (n *noopExpandableVolumePluginInstance) NewUnmounter(name string, podUID types.UID) (Unmounter, error) {
    	return nil, nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/go/doc/testdata/issue22856.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue22856
    
    type T struct{}
    
    func New() T                   { return T{} }
    func NewPointer() *T           { return &T{} }
    func NewPointerSlice() []*T    { return []*T{&T{}} }
    func NewSlice() []T            { return []T{T{}} }
    func NewPointerOfPointer() **T { x := &T{}; return &x }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 16:37:37 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring_test.go

    	for _, test := range []struct {
    		typ  Type
    		this *Package
    		want string
    	}{
    		{nil, nil, "<nil>"},
    		{pT, nil, "p.T"},
    		{pT, p, "T"},
    		{pT, q, "p.T"},
    		{NewPointer(pT), p, "*T"},
    		{NewPointer(pT), q, "*p.T"},
    	} {
    		qualifier := func(pkg *Package) string {
    			if pkg != test.this {
    				return pkg.Name()
    			}
    			return ""
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top