Initial commit, valiwork as framework is ready to use.

This commit is contained in:
2019-12-03 21:21:57 +05:00
commit 169b9499fe
11 changed files with 596 additions and 0 deletions

25
debug.go Normal file
View File

@@ -0,0 +1,25 @@
package valiwork
import (
// stdlib
"os"
"strconv"
)
var (
DEBUG bool
)
// Initializes debug output.
// nolint
func init() {
debug, found := os.LookupEnv("VALIWORK_DEBUG")
if found {
debugBool, err := strconv.ParseBool(debug)
if err != nil {
return
}
DEBUG = debugBool
}
}