Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for new2 (0.04 sec)

  1. test/fixedbugs/issue56778.dir/b.go

    // Copyright 2022 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.
    
    package b
    
    import "./a"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 18:31:28 UTC 2022
    - 203 bytes
    - Viewed (0)
  2. test/fixedbugs/issue46234.go

    }
    
    type R struct {
    	cM *CM
    }
    
    type CM int
    
    type A string
    
    func (m *CM) NewA(ctx context.Context, cN string, nn *nAO, opts ...NAO) (*A, error) {
    	for _, o := range opts {
    		o(nn)
    	}
    	s := A("foo")
    	return &s, nil
    }
    
    func (r *R) CA(ctx context.Context, cN string, nn *nAO) (*int, error) {
    	cA, err := r.cM.NewA(ctx, cN, nn, WEA(), WEA())
    	if err == nil {
    		return nil, err
    	}
    	println(cA)
    	x := int(42)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. test/typeparam/issue50598.dir/a2.go

    // Copyright 2022 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.
    
    package a2
    
    import "./a0"
    
    func New() int {
    	return a0.Builder[int]{}.New1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 239 bytes
    - Viewed (0)
  4. test/fixedbugs/issue56778.dir/a.go

    // Copyright 2022 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.
    
    package a
    
    type A struct {
    	New func() any
    }
    
    func NewA(i int) *A {
    	return &A{
    		New: func() any {
    			_ = i
    			return nil
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 18:31:28 UTC 2022
    - 293 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/vcstest/git/modlegacy1-new.txt

    git init
    
    at 2018-04-25T11:00:57-04:00
    git add go.mod new.go p1 p2
    git commit -m 'initial commit'
    git branch -m master
    
    git log --oneline --decorate=short
    cmp stdout .git-log
    
    -- .git-log --
    36cc50a (HEAD -> master) initial commit
    -- go.mod --
    module "vcs-test.golang.org/git/modlegacy1-new.git/v2"
    -- new.go --
    package new
    
    import _ "vcs-test.golang.org/git/modlegacy1-new.git/v2/p2"
    -- p1/p1.go --
    package p1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 15:36:24 UTC 2022
    - 770 bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/sample.kt

    package com.example
    
    
    fun Abc.body() {
        val myB = b()
    
        a = myB
        val myD = newD("shared")
    
        c(1) {
            x = f(y)
            d = myD
        }
        c(2) {
            x = f("another test")
            d = myD
        }
    }
    
    
    object Main {
        @JvmStatic
        fun main(args: Array<String>) {
            val receiver = Abc()
            receiver.body()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 13:30:30 UTC 2024
    - 425 bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/AssignmentResolverDemo.kt

    import org.gradle.internal.declarativedsl.demo.resolve
    
    
    object AssignmentResolverDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            val resolution = schema.resolve(
                """
                val myD = newD("shared")
    
                val c1 = c(1)
                c1.d = myD
                str = c1.d.id
                """.trimIndent()
            )
            printResolutionResults(resolution)
            printResolvedAssignments(resolution)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 647 bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	if v, _, _, _ := current.lookup(name); v != nil {
    		return v, nop
    	}
    	v, newM, err := current.newCounter(name)
    	if err != nil {
    		debugPrintf("newCounter %s: %v\n", name, err)
    		return nil, nop
    	}
    
    	cleanup = nop
    	if newM != nil {
    		f.current.Store(newM)
    		cleanup = f.invalidateCounters
    	}
    	return v, cleanup
    }
    
    // Open associates counting with the defaultFile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inject/kubevirtInterfaces_list.yaml

    spec:
      replicas: 7
      selector:
        matchLabels:
          app: hello
          tier: backend
          track: stable
      template:
        metadata:
          annotations:
            traffic.sidecar.istio.io/kubevirtInterfaces: "net1,net2"
          labels:
            app: hello
            tier: backend
            track: stable
        spec:
          containers:
            - name: hello
              image: "fake.docker.io/google-samples/hello-go-gke:1.0"
              ports:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 16 01:43:48 UTC 2019
    - 544 bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue25838.go

    package p
    
    // examples from the issue
    
    type (
    	e = f
    	f = g
    	g = []h
    	h i
    	i = j
    	j = e
    )
    
    type (
    	e1 = []h1
    	h1 e1
    )
    
    type (
    	P = *T
    	T P
    )
    
    func newA(c funcAlias) A {
    	return A{c: c}
    }
    
    type B struct {
    	a *A
    }
    
    type A struct {
    	c funcAlias
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 430 bytes
    - Viewed (0)
Back to top