Skip to content

Overkilling by repeated env file reads #1

Description

@mubasherusman

The following line in your config.Config () function will be called each time you try to get property from the os.GetEnv.
err := godotenv.Load(".env")

This is bad practice to read and load the file each time you need to find a configuration. Overkill. You should read your property file once at the start of main().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions