In Go, is there a notable difference between the following two segments of code:
v := &Vector{}
as opposed to
v := new(
Here is a difference: for a Person struct, the JSON string marshalled from &[]*Person{} is [] and from new([]*Person) is null using json.Marshal.
Check out the sample here: https://play.golang.org/p/xKkFLoMXX1s