Slide 17
Slide 17 text
2017/8/30 Go Escape Analysis
http://go-talks.appspot.com/github.com/Kooooya/slides/2017/0829_with_navitime/escape_analysis_0.slide#1 17/26
やってみる
package main
type S struct {
M *int
}
func main() {
ref()
}
func ref() (z S) {
var i = [5]int{1, 2, 3, 4, 5}
_i := i[0]
z.M = &_i
return z
}