- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for variadic (0.4 sec)
-
src/cmd/api/main_test.go
} } buf.WriteByte(']') } func (w *Walker) writeParams(buf *bytes.Buffer, t *types.Tuple, variadic bool) { buf.WriteByte('(') for i, n := 0, t.Len(); i < n; i++ { if i > 0 { buf.WriteString(", ") } typ := t.At(i).Type() if variadic && i+1 == n { buf.WriteString("...") typ = typ.(*types.Slice).Elem() } w.writeType(buf, typ) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 09 20:48:51 GMT 2024 - 31.4K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
} }() C.callGoFoo() } //export goFoo func goFoo() { x := 1 for i := 0; i < 10000; i++ { // variadic call mallocs + writes to variadic(x, x, x) if x != 1 { panic("bad x") } } } func variadic(x ...interface{}) {} func testBlocking(t *testing.T) { c := make(chan int) go func() { for i := 0; i < 10; i++ { c <- <-c }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
C compilers are aware of this calling convention and adjust the call accordingly, but Go cannot. In Go, you must pass the pointer to the first element explicitly: C.f(&C.x[0]). Calling variadic C functions is not supported. It is possible to circumvent this by using a C function wrapper. For example: package main // #include <stdio.h> // #include <stdlib.h> //
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
api/go1.5.txt
pkg go/types, method (*Signature) Results() *Tuple pkg go/types, method (*Signature) String() string pkg go/types, method (*Signature) Underlying() Type pkg go/types, method (*Signature) Variadic() bool pkg go/types, method (*Slice) Elem() Type pkg go/types, method (*Slice) String() string pkg go/types, method (*Slice) Underlying() Type pkg go/types, method (*StdSizes) Alignof(Type) int64
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 30 21:14:09 GMT 2015 - 46.6K bytes - Viewed (0) -
doc/go1.22.html
}() </pre> <h4 id="vet-slog">New warnings for mismatched key-value pairs in <code>log/slog</code> calls</h4> <p><!-- CL 496156, https://go.dev/issue/59407: log/slog: add vet checks for variadic ...any inputs --> The vet tool now reports invalid arguments in calls to functions and methods in the structured logging package, <a href="/pkg/log/slog"><code>log/slog</code></a>, that accept alternating key/value pairs.
HTML - Registered: Tue Feb 06 11:13:10 GMT 2024 - Last Modified: Wed Jan 31 20:51:56 GMT 2024 - 45.6K bytes - Viewed (0) -
doc/go1.17_spec.html
</p> <p> The final incoming parameter in a function signature may have a type prefixed with <code>...</code>. A function with such a parameter is called <i>variadic</i> and may be invoked with zero or more arguments for that parameter. </p> <pre> func() func(x int) int func(a, _ int, z float32) bool func(a, b int, z float32) (bool)
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
</p> <p> The final incoming parameter in a function signature may have a type prefixed with <code>...</code>. A function with such a parameter is called <i>variadic</i> and may be invoked with zero or more arguments for that parameter. </p> <pre> func() func(x int) int func(a, _ int, z float32) bool func(a, b int, z float32) (bool)
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 00:39:16 GMT 2024 - 279.6K bytes - Viewed (0) -
RELEASE.md
(incl. anti-aliasing). * Renamed `tf.image` functions to remove duplicate "image" where it is redundant. * Variadic reduce is supported on CPU Variadic reduce is supported on CPU * Remove unused `StringViewVariantWrapper`. * Delete unused `Fingerprint64Map` op registration * Add broadcasting support to `tf.matmul`.
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 29 19:17:57 GMT 2024 - 727.7K bytes - Viewed (8) -
api/go1.txt
pkg reflect, type Type interface, FieldByNameFunc(func(string) bool) (StructField, bool) pkg reflect, type Type interface, Implements(Type) bool pkg reflect, type Type interface, In(int) Type pkg reflect, type Type interface, IsVariadic() bool pkg reflect, type Type interface, Key() Type pkg reflect, type Type interface, Kind() Kind pkg reflect, type Type interface, Len() int pkg reflect, type Type interface, Method(int) Method
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)