/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue48357.go
20 строк
360 B
Keith Randall
reflect: fix _faststr optimization
13 сен 2021, 21:38
13 сен 2021, 21:38
ac40c98
Код
Авторство
О чём код?
// run // Copyright 2021 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 main import "reflect" type T [129]byte func main() { m := map[string]T{} v := reflect.ValueOf(m) v.SetMapIndex(reflect.ValueOf("a"), reflect.ValueOf(T{})) g = m["a"] } var g T