Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AnotherFunc (0.14 sec)

  1. test/maymorestack.go

    	count++
    }
    
    func main() {
    	const wantCount = 128
    
    	anotherFunc(wantCount - 1) // -1 because the call to main already counted
    
    	if count == 0 {
    		panic("mayMoreStack not called")
    	} else if count != wantCount {
    		println(count, "!=", wantCount)
    		panic("wrong number of calls to mayMoreStack")
    	}
    }
    
    //go:noinline
    func anotherFunc(n int) {
    	// Trigger a stack growth on at least some calls to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 00:52:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/go/doc/testdata/generics.1.golden

    // Package generics contains the new syntax supporting generic ...
    PACKAGE generics
    
    IMPORTPATH
    	testdata/generics
    
    FILENAMES
    	testdata/generics.go
    
    FUNCTIONS
    	// AnotherFunc has an implicit constraint interface.  Neither type ...
    	func AnotherFunc[T ~struct{ f int }](_ struct{ f int })
    
    	// Func has an instantiated constraint. 
    	func Func[T Constraint[string, Type[int]]]()
    
    	// Single is not a factory function. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. src/go/doc/testdata/generics.0.golden

    // Package generics contains the new syntax supporting generic ...
    PACKAGE generics
    
    IMPORTPATH
    	testdata/generics
    
    FILENAMES
    	testdata/generics.go
    
    FUNCTIONS
    	// AnotherFunc has an implicit constraint interface.  Neither type ...
    	func AnotherFunc[T ~struct{ f int }](_ struct{ f int })
    
    	// Func has an instantiated constraint. 
    	func Func[T Constraint[string, Type[int]]]()
    
    	// Single is not a factory function. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. src/go/doc/testdata/generics.2.golden

    // Package generics contains the new syntax supporting generic ...
    PACKAGE generics
    
    IMPORTPATH
    	testdata/generics
    
    FILENAMES
    	testdata/generics.go
    
    FUNCTIONS
    	// AnotherFunc has an implicit constraint interface.  Neither type ...
    	func AnotherFunc[T ~struct{ f int }](_ struct{ f int })
    
    	// Func has an instantiated constraint. 
    	func Func[T Constraint[string, Type[int]]]()
    
    	// Single is not a factory function. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  5. src/go/doc/testdata/generics.go

    	struct{ f int } | ~struct{ f int }
    }
    
    // Func has an instantiated constraint.
    func Func[T Constraint[string, Type[int]]]() {}
    
    // AnotherFunc has an implicit constraint interface.
    //
    // Neither type parameters nor regular parameters should be filtered.
    func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) {}
    
    // AFuncType demonstrates filtering of parameters and type parameters. Here we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top