- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TypeFor (0.1 sec)
-
src/reflect/type_test.go
) testcases := []struct { wantFrom any got reflect.Type }{ {new(int), reflect.TypeFor[int]()}, {new(int64), reflect.TypeFor[int64]()}, {new(string), reflect.TypeFor[string]()}, {new(mystring), reflect.TypeFor[mystring]()}, {new(any), reflect.TypeFor[any]()}, {new(myiface), reflect.TypeFor[myiface]()}, } for _, tc := range testcases { want := reflect.ValueOf(tc.wantFrom).Elem().Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
doc/next/3-tools.md
by any [`//go:build` constraints](https://pkg.go.dev/cmd/go#hdr-Build_constraints) in the file.) For example, it will report a diagnostic for a reference to the `reflect.TypeFor` function (introduced in go1.22) from a file in a module whose go.mod file specifies `go 1.21`. ### Cgo {#cgo} <!-- go.dev/issue/66456 --> [cmd/cgo] supports the new `-ldflags` flag for passing flags to the C linker.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 19:06:07 UTC 2024 - 3.4K bytes - Viewed (0) -
doc/next/9-todo.md
CL 514775 - implements a performance optimization for accepted proposal https://go.dev/issue/59488 CL 484995 - x/sys CL implements accepted proposal https://go.dev/issue/59537 to add x/sys/unix API CL 555597 - optimizes TypeFor (added in accepted proposal https://go.dev/issue/60088) for non-interface types; doesn't seem to need a release note
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:18:52 UTC 2024 - 6K bytes - Viewed (0)