Edwin is a doctor; he has created a Go program that has the Appointment struct that will hold important data about his patients' medical appointments. This way, his secretary will check and organize his schedule for the month of April.
Since his secretary should not know the private details about what Dr. Edwin will discuss with patients during the medical appointment (due to Doctor-Patient confidentiality), he wants to make sure the Description field is not encoded to JSON.
Dr. Edwin has already written the required code to take as an input the values for the Appointment struct and serialize it to JSON afterward. However, he needs your help to properly add the correct JSON struct tags to his code to follow the camelCase naming convention and use the correct directive to make the Description field never be encoded to JSON.
time package to calculate a specific date appointment with the time.Time struct and time.Date() functions. However, to solve this task, you don't need to know how the time package works. The only objective is to add the correct JSON struct tags along with the right directives to achieve the serialized output Dr. Edwin wants.Below is the code Dr. Edwin has written so far: