aboutsummaryrefslogtreecommitdiff
path: root/client/state.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-11-17 10:13:06 +0100
committerJulien Dessaux2021-11-17 10:13:06 +0100
commitc3263c03776401ad1263a9fb8f5a44a8ed44d61b (patch)
tree7dac91753cb4428ede2ba72fb09eca9ba6c2daab /client/state.go
parentUpdated dependencies (diff)
downloadshell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.tar.gz
shell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.tar.bz2
shell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.zip
Refactored package structure
Diffstat (limited to 'client/state.go')
-rw-r--r--client/state.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/client/state.go b/client/state.go
deleted file mode 100644
index 9565efc..0000000
--- a/client/state.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package client
-
-import (
- "shell-game-launcher/config"
-)
-
-type State struct {
- config *config.Config
- currentMenu string
- login string
-}
-
-func NewState(config *config.Config, login string) *State {
- cs := State{
- config: config,
- currentMenu: "anonymous",
- login: login,
- }
- if login != "" {
- cs.currentMenu = "logged_in"
- }
- return &cs
-}