https://kasata.medium.com/how-to-resolve-undefined-x-error-in-golang-a-comprehensive-guide-6b3beb90fda7