There are multiple answers/techniques to the below question:

  1. How to set default values to golang structs?
  2. How to initialize structs in golang

I have a couple of answers but further discussion is required.

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *