docs(controller): add todo statements

This commit is contained in:
leandrofars 2024-02-06 00:19:41 -03:00
parent 1203897646
commit bab2699f73

View File

@ -22,6 +22,7 @@ import (
"github.com/leandrofars/oktopus/internal/ws" "github.com/leandrofars/oktopus/internal/ws"
) )
// TODO: refact where this version number comes from
const VERSION = "0.0.1" const VERSION = "0.0.1"
func main() { func main() {
@ -44,6 +45,7 @@ func main() {
// Locks app running until it receives a stop command as Ctrl+C. // Locks app running until it receives a stop command as Ctrl+C.
signal.Notify(done, syscall.SIGINT) signal.Notify(done, syscall.SIGINT)
//TODO: refact app confiurations and env loading to another package
log.SetFlags(log.LstdFlags | log.Lshortfile) log.SetFlags(log.LstdFlags | log.Lshortfile)
/* /*
@ -201,6 +203,8 @@ func main() {
} }
//TODO: refact functions below to another package
func lookupEnvOrString(key string, defaultVal string) string { func lookupEnvOrString(key string, defaultVal string) string {
if val, _ := os.LookupEnv(key); val != "" { if val, _ := os.LookupEnv(key); val != "" {
return val return val