aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorTeddy Wing2017-03-12 15:17:36 +0100
committerTeddy Wing2017-03-12 15:17:36 +0100
commit3291b4dd10cd3b9b2a5d4a4d4ebebe99038ad948 (patch)
tree8cfd1e151de71a08ed57a2d8fafc79b9f47dad60 /main.go
parent7a8db5312bbb43c986fbae7aa14960e22080b03b (diff)
downloadtimetasker-3291b4dd10cd3b9b2a5d4a4d4ebebe99038ad948.tar.bz2
Make fields named structs
We'll be needing to refer to these fields as named types, so create types for them and reference them in the config object.
Diffstat (limited to 'main.go')
-rw-r--r--main.go24
1 files changed, 1 insertions, 23 deletions
diff --git a/main.go b/main.go
index 5c6e5e4..0d3a465 100644
--- a/main.go
+++ b/main.go
@@ -16,29 +16,7 @@ type Config struct {
Username string
PasswordCmd string `yaml:"password_cmd"`
}
- Fields struct {
- PersonID uint `yaml:"person_id"`
- Clients []struct {
- ID uint
- Name string
- Projects []struct {
- ID uint
- Name string
- Modules []struct {
- ID uint
- Name string
- }
- Tasks []struct {
- ID uint
- Name string
- }
- WorkTypes []struct {
- ID uint
- Name string
- } `yaml:"work_types"`
- }
- }
- }
+ Fields timetask.Fields
}
var config Config