Struct.Ptr must set ptr before setting up the value. All the struct.Ptr setting issue fixed
Closes #107 (closed)
Fixed ptr object value set before setting the pointer.
-
- #107 (closed) - A pointer must be set before setting a value.
Reason
- A pointer should not set value until the pointer is set.
One cannot do
struct A { ptr *[]string}
strs := make([]string, 0, 10)
Cannot
*A.ptr = strs
Solution
A.ptr = &strs
Note on Merge
A hotfix can be directly merged to the release or master branch.
Reference: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Edited by Md. Alim Ul Karim