Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated GetDescription function and ReadEnv. #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 19, 2020

  1. Updated GetDescription function and ReadEnv.

    Now user can see more userful information then earlier.
    In particular, GetDescription function return text with
    information with "required" line.
    See example below:
    Environment variables:
      GREETING string
            Greeting phrase
            Default: "Hello!"
            Required: true
      DB_HOST string
            Database host
            Required: true
      DB_PORT string
            Database port
            Required: true
      DB_USER string
            Database user name
            Required: true
      DB_PASSWORD string
            Database user password
            Required: true
      DB_NAME string
            Database name
            Required: true
    
    Error from ReadEnv contains information not only about
    structure's field, but about env variables for this field as well.
    "field "Host" is required but the value is not provided.
    Envs names: "SRV_HOST HOST""
    
    Also, all test changed for the last changes.
    mashinapetro committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    7b073db View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. Update go.mod

    mashinapetro committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    5eac4c4 View commit details
    Browse the repository at this point in the history