Original post

I have seen that some people use pointer type member to struct and would like to know what is the advantages in this over normal one. (They have used this in lib. which will send the data to other micro-services in xml format)

type Employee struct{

Name *string
DepName  *string