use strings for state flags

This commit is contained in:
Carlosokumu 2024-08-19 10:59:20 +03:00
parent 18af95c3ed
commit afe238003a
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -246,6 +246,12 @@ func main() {
ctx := context.Background()
st := state.NewState(7)
st.UseDebug()
state.FlagDebugger.Register(USERFLAG_LANGUAGE_SET, "LANGUAGE_CHANGE")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_CREATED,"ACCOUNT_CREATED")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_SUCCESS,"ACCOUNT_SUCCESS")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_PENDING,"ACCOUNT_PENDING")
rfs := resource.NewFsResource(scriptDir)
ca := cache.NewCache()
cfg := engine.Config{