This post - solution from @icza - helped me to solve my job task, so I want to thank community and share my solution which is extended solution of @icza (but can be still incomplete - not covering all cases). Refer to https://github.com/mabrarov/go-text-template-parse.
Thanks.