Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NewA (0.08 sec)

  1. test/fixedbugs/issue28390.go

    package main
    
    import "fmt"
    
    type A struct {
    	K int
    	S string
    	M map[string]string
    }
    
    func newA(k int, s string) (a A) {
    	a.K = k
    	a.S = s
    	a.M = make(map[string]string)
    	a.M[s] = s
    	return
    }
    
    func proxy() (x int, a A) {
    	return 1, newA(2, "3")
    }
    
    func consume(x int, a interface{}) {
    	fmt.Println(x)
    	fmt.Println(a) // used to panic here
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 28 18:22:36 UTC 2018
    - 648 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/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)
  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/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)
  6. internal/grid/types.go

    func (j *Array[T]) Value() []T {
    	if j.val == nil {
    		j.val = j.p.newA(10)
    	}
    	return j.val
    }
    
    // Append a value to the underlying array.
    // The returned Array is always the same as the one called.
    func (j *Array[T]) Append(v ...T) *Array[T] {
    	if j.val == nil {
    		j.val = j.p.newA(uint32(len(v)))
    	}
    	j.val = append(j.val, v...)
    	return j
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/unicode.gox

    var Modi <type 1>;
    var Mongolian <type 1>;
    var Mro <type 1>;
    var Multani <type 1>;
    var Myanmar <type 1>;
    var N <type 1>;
    var Nabataean <type 1>;
    var Nd <type 1>;
    var New_Tai_Lue <type 1>;
    var Newa <type 1>;
    var Nko <type 1>;
    var Nl <type 1>;
    var No <type 1>;
    var Noncharacter_Code_Point <type 1>;
    var Number <type 1>;
    var Ogham <type 1>;
    var Ol_Chiki <type 1>;
    var Old_Hungarian <type 1>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  8. api/go1.7.txt

    pkg testing, type InternalExample struct, Unordered bool
    pkg unicode, const Version = "9.0.0"
    pkg unicode, var Adlam *RangeTable
    pkg unicode, var Bhaiksuki *RangeTable
    pkg unicode, var Marchen *RangeTable
    pkg unicode, var Newa *RangeTable
    pkg unicode, var Osage *RangeTable
    pkg unicode, var Prepended_Concatenation_Mark *RangeTable
    pkg unicode, var Sentence_Terminal *RangeTable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
  9. src/unicode/tables.go

    	New_Tai_Lue            = _New_Tai_Lue            // New_Tai_Lue is the set of Unicode characters in script New_Tai_Lue.
    	Newa                   = _Newa                   // Newa is the set of Unicode characters in script Newa.
    	Nko                    = _Nko                    // Nko is the set of Unicode characters in script Nko.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 04:29:53 UTC 2023
    - 205.2K bytes
    - Viewed (0)
  10. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    11400..1144A  ; valid                                  # 9.0  NEWA LETTER A..NEWA SIDDHI
    1144B..1144F  ; valid                  ;      ; NV8    # 9.0  NEWA DANDA..NEWA ABBREVIATION SIGN
    11450..11459  ; valid                                  # 9.0  NEWA DIGIT ZERO..NEWA DIGIT NINE
    1145A         ; valid                  ;      ; NV8    # 13.0 NEWA DOUBLE COMMA
    1145B         ; valid                  ;      ; NV8    # 9.0  NEWA PLACEHOLDER MARK
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Feb 10 11:25:47 UTC 2024
    - 854.1K bytes
    - Viewed (0)
Back to top