Categorygithub.com/user0608/ifdevmode
modulepackage
0.0.3
Repository: https://github.com/user0608/ifdevmode.git
Documentation: pkg.go.dev

# README

ifdevmode

a simple function, to execute a block of code if an environment variable is enabled.

    ifdevmode.Do(func() {
            var err = connection.Conn(context.Background()).Schema.Create(context.Background())
            if err != nil {
                log.Fatalln()
            }
    })

Environment variables to execute

    DEBUG
    DEBUG_MODE
    DEBUGMODE
    DEV_MODE
    DEVMODE
    ## possible values:
    #   - true
    #   - 1
    #   - on
    #   - enabled
    #   - activo
    #   - si
    #   - yes
    #   - y

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author