Tyk Gateway Could not load Go-plugin

I found the solution by referring to this post here Can’t compile custom-go-plugin using v5.2.5 - Support / Administration and Operation - Tyk API Management Community Forum. Next time if anyone faces this error, can refer to it.