When initializing a struct type using data from a possible 'nil' pointer, the panic message always refers to the first line calling a function in that pointer, instead of a value.
https://play.golang.org/p/VgX59Y08syi
For example, if you swap lines 20 and 21 in the above code, the panic occurs in the line where a function is called, instead of the first dereference to the nil pointer.
Why this happens, instead of the panic happening on "myStruct.MyString"?