Skip to content

Replace init function initialisation with explicit initialisation #99

Open
@sivachandran

Description

@sivachandran

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions