go - Is this syntax a pointer to a slice or a slice of pointers? -


after looking @ this blog post, still unclear whether following syntax means slice of pointers or pointer slice.

foo  []*int 

which 1 it, , general rule of thumb case?

this slice of pointers, read left right: ([]) slice of (*) pointers (int) integer. on other hand, *[]int (*) pointer ([]) slice of (int) integers.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -