Go 포인터 슬라이스

1 개요[ | ]

Go 포인터 슬라이스
package main

import "fmt"

func main() {
	pointers := []*int{}
	for i := 0; i < 5; i++ {
		pointers = append(pointers, &i)
	}
	fmt.Printf("pointers = %#v", pointers)
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}