Various components of Clamp are initialised through init functions. In Go, initialisation through init function is generally discouraged and used only for certain special cases like loading DB driver. Moreover init function based initialisation order is indeterministic and difficult to troubleshoot if any of the initialisation fails. So, we should replace init function based initialisation with explicit initialisation.
Various components of Clamp are initialised through
init
functions. In Go, initialisation throughinit
function is generally discouraged and used only for certain special cases like loading DB driver. Moreoverinit
function based initialisation order is indeterministic and difficult to troubleshoot if any of the initialisation fails. So, we should replaceinit
function based initialisation with explicit initialisation.