repositorypackage
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