diff options
author | Teddy Wing | 2017-03-12 17:51:04 +0100 |
---|---|---|
committer | Teddy Wing | 2017-03-12 17:51:04 +0100 |
commit | a14736cd1311595f9d0aaf94e6852b246a606d13 (patch) | |
tree | 9dc16bddb3881fb00d99c3f87dd7343b7a69b4e9 /timetask/time_entry.go | |
parent | 17f4ecc63615e3f3bef21a80f15e7c7b0e0cffa1 (diff) | |
download | timetasker-a14736cd1311595f9d0aaf94e6852b246a606d13.tar.bz2 |
Change all `uint` types to `int`
Because `strings.Itoa` is so much easier to call than
`strconv.ParseUint`, and I needed to parse ints into strings to build
the URL params in `buildSubmissionParams`
(17f4ecc63615e3f3bef21a80f15e7c7b0e0cffa1).
Diffstat (limited to 'timetask/time_entry.go')
-rw-r--r-- | timetask/time_entry.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/timetask/time_entry.go b/timetask/time_entry.go index a4d37ef..32e2825 100644 --- a/timetask/time_entry.go +++ b/timetask/time_entry.go @@ -9,7 +9,7 @@ type TimeEntry struct { Task string WorkType string `yaml:"work_type"` Date time.Time - Time uint + Time int Billable bool Description string } @@ -23,7 +23,7 @@ func (te *TimeEntry) UnmarshalYAML(unmarshal func(interface{}) error) error { Task string WorkType string `yaml:"work_type"` Date string - Time uint + Time int Billable bool Description string } |